onDidChange property
A function that will be run on State change, after the Widget is built.
This function is passed the ViewModel
, and if distinct
is true
,
it will only be called if the ViewModel
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 onWillChange.
Implementation
final OnDidChangeCallback<ViewModel>? onDidChange;