onWillChange property

OnWillChangeCallback<Store<S>>? onWillChange
final

A function that will be run on State change, before the Widget is built.

This can be useful for imperative calls to things like Navigator, TabController, etc. This can also be useful for triggering actions based on the previous state.

Implementation

final OnWillChangeCallback<Store<S>>? onWillChange;