onInactive method

  1. @override
void onInactive()
override

Called when another screen is pushed on top, when its shell hides it, or right before this one is popped. Mirror of onActive.

Implementation

@override
void onInactive() {
  super.onInactive();
  _active = false;
}