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 c08b9ac commit acbfb40Copy full SHA for acbfb40
packages/flutter/lib/src/widgets/routes.dart
@@ -1499,7 +1499,9 @@ abstract class ModalRoute<T> extends TransitionRoute<T> with LocalHistoryRoute<T
1499
final _ModalScopeState<T>? scope = _scopeKey.currentState;
1500
assert(scope != null);
1501
for (final WillPopCallback callback in List<WillPopCallback>.of(_willPopCallbacks)) {
1502
- if (!await callback()) {
+ // TODO(goderbauer): Tests using the Component Framework in google3 insist on returning
1503
+ // null for mocked out WillPopCallbacks. Fix that to remove ignore.
1504
+ if (await callback() != true) { // ignore: no_literal_bool_comparisons
1505
return RoutePopDisposition.doNotPop;
1506
}
1507
0 commit comments