File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
packages/devtools_app/lib Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
// @dart=2.9
6
6
7
- import 'package:devtools_app/src/url_strategy/url_strategy.dart' ;
8
7
import 'package:flutter/material.dart' ;
9
8
import 'package:flutter_riverpod/flutter_riverpod.dart' ;
10
9
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ class DevToolsRouterDelegate extends RouterDelegate<DevToolsRouteConfiguration>
137
137
/// If page and args would be the same, does nothing.
138
138
/// Existing arguments (for example &uri=) will be preserved unless
139
139
/// overwritten by [argUpdates] .
140
- void navigateIfNotCurrent (String page, [Map <String , String >? argUpdates]) {
140
+ void navigateIfNotCurrent (String page, [Map <String , String ? >? argUpdates]) {
141
141
final pageChanged = page != currentConfiguration! .page;
142
142
final argsChanged = _changesArgs (argUpdates);
143
143
if (! pageChanged && ! argsChanged) {
@@ -209,7 +209,7 @@ class DevToolsRouterDelegate extends RouterDelegate<DevToolsRouteConfiguration>
209
209
210
210
/// Checks whether applying [changes] over the current routes args will result
211
211
/// in any changes.
212
- bool _changesArgs (Map <String , String >? changes) => ! mapEquals (
212
+ bool _changesArgs (Map <String , String ? >? changes) => ! mapEquals (
213
213
{...currentConfiguration! .args, ...? changes},
214
214
{...currentConfiguration! .args},
215
215
);
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
232
232
Router .neglect (context, () {
233
233
routerDelegate.navigateIfNotCurrent (
234
234
_currentScreen.screenId,
235
- routerDelegate.currentConfiguration.args,
235
+ routerDelegate.currentConfiguration? .args,
236
236
);
237
237
});
238
238
});
You can’t perform that action at this time.
0 commit comments