didPushNext method

  1. @override
void didPushNext()
override

Called when a new route has been pushed, and the current route is no longer visible.

Implementation

@override
void didPushNext() {
  setState(() => visible = false);
}