didAdd method

  1. @override
void didAdd()

Called after install when the route is added to the navigator.

This method is called instead of didPush when the route immediately appears on screen without any push transition.

The didChangeNext and didChangePrevious methods are typically called immediately after this method is called.


void didAdd() {
  assert(_controller != null, '$runtimeType.didPush called before calling install() or after calling dispose().');
  assert(!_transitionCompleter.isCompleted, 'Cannot reuse a $runtimeType after disposing it.');
  _controller!.value = _controller!.upperBound;