Provider
It is a widget that allows to create a store locally, and make it available to the widgets that children of it.
Provider(
create: () => CounterStore(),
ref: "counterRef",
child: ChildWidget(),
);
The create parameter is a function that returns the store that will be available to the children of the widget. The store created has the ref passed in the ref parameter. It is automatically disposed when the widget is removed from the tree.
The store created is automatically added to fluxer. While the widget is in the tree, it can be accessed as any other store using:
fluxer.of<CounterStore>("counterRef")fluxer.stateOf<CounterState>("counterRef")