File tree Expand file tree Collapse file tree 2 files changed +129
-169
lines changed
Expand file tree Collapse file tree 2 files changed +129
-169
lines changed Original file line number Diff line number Diff line change @@ -284,27 +284,25 @@ class _RouteMatcher<T> extends Matcher {
284284 mismatchDescriptions.add ("the route's `arguments` $mismatch " );
285285 }
286286 if (! maintainStateMatches) {
287- final mismatch =
288- item is ! ModalRoute
289- ? 'is not a property on `${item .runtimeType }` and can only be '
290- 'used with `ModalRoute`s'
291- : whereMaintainState! .describeMismatchAsString (
292- item.maintainState,
293- matchState,
294- verbose: verbose,
295- );
287+ final mismatch = item is ! ModalRoute
288+ ? 'is not a property on `${item .runtimeType }` and can only be '
289+ 'used with `ModalRoute`s'
290+ : whereMaintainState! .describeMismatchAsString (
291+ item.maintainState,
292+ matchState,
293+ verbose: verbose,
294+ );
296295 mismatchDescriptions.add ('`maintainState` $mismatch ' );
297296 }
298297 if (! fullscreenDialogMatches) {
299- final mismatch =
300- item is ! PageRoute
301- ? 'is not a property on `${item .runtimeType }` and can only be '
302- 'used with `PageRoute`s'
303- : whereFullscreenDialog! .describeMismatchAsString (
304- item.fullscreenDialog,
305- matchState,
306- verbose: verbose,
307- );
298+ final mismatch = item is ! PageRoute
299+ ? 'is not a property on `${item .runtimeType }` and can only be '
300+ 'used with `PageRoute`s'
301+ : whereFullscreenDialog! .describeMismatchAsString (
302+ item.fullscreenDialog,
303+ matchState,
304+ verbose: verbose,
305+ );
308306 mismatchDescriptions.add ('`fullscreenDialog` $mismatch ' );
309307 }
310308
You can’t perform that action at this time.
0 commit comments