handlePopRoute method
Called when the system pops the current route.
This first notifies the binding observers (using ElementsBindingObserver.didPopRoute), in registration order, until one returns true, meaning that it was able to handle the request (e.g. by closing a dialog box). If none return true, then the application is shut down by calling SystemNavigator.pop.
This method exposes the popRoute
notification from
SystemChannels.navigation.
Implementation
@protected
Future<void> handlePopRoute() async {
for (ElementsBindingObserver observer in List<ElementsBindingObserver>.from(_observers)) {
if (await observer.didPopRoute()) return;
}
SystemNavigator.pop();
}