onWillChange method
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
Implementation
void onWillChange(
BuildContext context,
V? previousViewModel,
V newViewModel,
) {}