1. @mustCallSuper
  2. @protected
void dispose()

The route should remove its overlays and free any other resources.

This route is no longer referenced by the navigator.

Source

@mustCallSuper
@protected
void dispose() {
  _navigator = null;
}