OnDisposeCallback<S> typedef

void OnDisposeCallback (Store<S> store)

A function that will be run when the StoreConnector is removed from the Widget Tree.

It is run in the State.dispose method.

This can be useful for dispatching actions that remove stale data from your State tree.

Implementation

typedef OnDisposeCallback<S> = void Function(
  Store<S> store,
);