finishedWhenPopped property

  1. @override
bool get finishedWhenPopped
override

Controls whether didPop calls NavigatorState.finalizeRoute.

If true, this route removes its overlay entries during didPop. Subclasses can override this getter if they want to delay finalization (for example to animate the route's exit before removing it from the overlay).

Subclasses that return false from finishedWhenPopped are responsible for calling NavigatorState.finalizeRoute themselves.

Implementation

@override
bool get finishedWhenPopped =>
    _controller!.status == AnimationStatus.dismissed;