We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adde731 commit c07448cCopy full SHA for c07448c
auto_route/lib/src/router/controller/routing_controller.dart
@@ -1146,8 +1146,7 @@ abstract class StackRouter extends RoutingController {
1146
@optionalTypeArgs
1147
Future<bool> maybePop<T extends Object?>([T? result]) async {
1148
final NavigatorState? navigator = _navigatorKey.currentState;
1149
- if (navigator == null) return SynchronousFuture<bool>(false);
1150
- if (await navigator.maybePop<T>(result)) {
+ if (await navigator?.maybePop<T>(result) ?? false) {
1151
return true;
1152
} else if (_parent != null) {
1153
return _parent!.maybePop<T>(result);
0 commit comments