didPop method

  1. @mustCallSuper
  2. @override
void didPop(
  1. Route nextRoute
)
override

Invoked by the RouterComponent when this route is popped off the top of the navigation stack. If maintainState is false, the page component rendered by this route is not retained when the route it popped.

Implementation

@mustCallSuper
@override
void didPop(Route nextRoute) {
  if (!_completer.isCompleted) {
    _completer.complete(_defaultValue);
  }
}