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 2b95fa6 commit 5ae6438Copy full SHA for 5ae6438
packages/flutter/lib/src/widgets/routes.dart
@@ -1499,9 +1499,7 @@ 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
- // 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
+ if (!await callback()) {
1505
return RoutePopDisposition.doNotPop;
1506
}
1507
0 commit comments