redrawOn method
Define the list of Store instances that this component should listen to. When any of the returned Stores update their state, this component will redraw.
If 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 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() {
if (store is Store) {
return [store as Store];
} else {
return [];
}
}