redrawOn method
Define the list of Store
instances that this component should listen to.
When any of the returned Store
s update their state, this component will
redraw.
If props.store
is of type Store
(in other words, if this component has a
single Store passed in), this will return a list with said store as the
only element by default. Otherwise, an empty list is returned.
If props.store
is actually a composite object with multiple stores, this
method should be overridden to return a list with the stores that should
be listened to.
@override
redrawOn() => [store.tasks, store.users];
Implementation
List<Store> redrawOn() {
final store = props.store;
return store is Store ? [store] : [];
}