didPopRoute method

Future<bool> didPopRoute()

Called when the system tells the app to pop the current route. For example, on Android, this is called when the user presses the back button.

Observers are notified in registration order until one returns true. If none return true, the application quits.

Observers are expected to return true if they were able to handle the notification, for example by closing an active dialog box, and false otherwise.

This method exposes the popRoute notification from SystemChannels.navigation.

Implementation

Future<bool> didPopRoute() => Future<bool>.value(false);