didPopNext method Null safety

  1. @override
void didPopNext(
  1. Route nextRoute
)
override

The given route, which was above this one, has been popped off the navigator.

This route is now the current route (isCurrent is now true), and there is no next route.

Implementation

@override
void didPopNext(Route<dynamic> nextRoute) {
  assert(_controller != null, '$runtimeType.didPopNext called before calling install() or after calling dispose().');
  assert(!_transitionCompleter.isCompleted, 'Cannot reuse a $runtimeType after disposing it.');
  _updateSecondaryAnimation(nextRoute);
  super.didPopNext(nextRoute);
}