handleBackPressed static method
Implementation
static Future<bool> handleBackPressed(BuildContext context) async {
final AppRouterDelegate delegate = _getAppRouterDelegate(context);
if (await delegate.handleBackPressed()) {
return true;
}
return delegate.popRoute();
}