onExit method

FutureOr<bool> onExit(
  1. BuildContext context,
  2. GoRouterState state
)

Called when this route is removed from GoRouter's route history.

Corresponds to GoRoute.onExit.

Implementation

FutureOr<bool> onExit(BuildContext context, GoRouterState state) => true;