onDidChange method

void onDidChange(
  1. BuildContext context,
  2. V? previousViewModel,
  3. V newViewModel
)

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

This can be useful for running certain animations after the build is complete.

Note: For navigation purposes, please use onWillChange.

Implementation

void onDidChange(
  BuildContext context,
  V? previousViewModel,
  V newViewModel,
) {}