OnDidChangeCallback<St, Model> typedef

OnDidChangeCallback<St, Model> = void Function(BuildContext? context, Store<St> store, Model viewModel)

A function that will be run on State change, after the build method.

This function is passed the Model, and if distinct is true, it will only be called if the Model changes. This can be useful for running certain animations after the build is complete. Note: Using a BuildContext inside this callback can cause problems if the callback performs navigation. For navigation purposes, please use an OnWillChangeCallback.

Implementation

typedef OnDidChangeCallback<St, Model> = void Function(
    BuildContext? context, Store<St> store, Model viewModel);