onDeactivated function

void onDeactivated(
  1. void hook()
)

Called when a cached component is deactivated

Implementation

void onDeactivated(void Function() hook) {
  _registerHook(Lifecycle.deactivated, hook);
}