@@ -16,22 +16,20 @@ class GoRouterState {
16
16
/// Default constructor for creating route state during routing.
17
17
const GoRouterState (
18
18
this ._configuration, {
19
- required this .location ,
19
+ required this .uri ,
20
20
required this .matchedLocation,
21
21
this .name,
22
22
this .path,
23
23
required this .fullPath,
24
24
required this .pathParameters,
25
- required this .queryParameters,
26
- required this .queryParametersAll,
27
25
this .extra,
28
26
this .error,
29
27
required this .pageKey,
30
28
});
31
29
final RouteConfiguration _configuration;
32
30
33
- /// The full location of the route, e.g. /family/f2/person/p1
34
- final String location ;
31
+ /// The full uri of the route, e.g. /family/f2/person/p1?filter=name#fragment
32
+ final Uri uri ;
35
33
36
34
/// The matched location until this point.
37
35
///
@@ -63,12 +61,12 @@ class GoRouterState {
63
61
/// The parameters for this match, e.g. {'fid': 'f2'}
64
62
final Map <String , String > pathParameters;
65
63
66
- /// The query parameters for the location, e.g. {'from': '/family/f2'}
67
- final Map <String , String > queryParameters;
68
-
69
- /// The query parameters for the location,
70
- /// e.g. `{'q1': ['v1'], 'q2': ['v2', 'v3']}`
71
- final Map <String , List <String >> queryParametersAll;
64
+ // // / The query parameters for the location, e.g. {'from': '/family/f2'}
65
+ // Map<String, String> get queryParameters => uri. queryParameters;
66
+ //
67
+ // // / The query parameters for the location,
68
+ // // / e.g. `{'q1': ['v1'], 'q2': ['v2', 'v3']}`
69
+ // Map<String, List<String>> get queryParametersAll => uri. queryParametersAll;
72
70
73
71
/// An extra object to pass along with the navigation.
74
72
final Object ? extra;
@@ -150,32 +148,20 @@ class GoRouterState {
150
148
@override
151
149
bool operator == (Object other) {
152
150
return other is GoRouterState &&
153
- other.location == location &&
151
+ other.uri == uri &&
154
152
other.matchedLocation == matchedLocation &&
155
153
other.name == name &&
156
154
other.path == path &&
157
155
other.fullPath == fullPath &&
158
156
other.pathParameters == pathParameters &&
159
- other.queryParameters == queryParameters &&
160
- other.queryParametersAll == queryParametersAll &&
161
157
other.extra == extra &&
162
158
other.error == error &&
163
159
other.pageKey == pageKey;
164
160
}
165
161
166
162
@override
167
- int get hashCode => Object .hash (
168
- location,
169
- matchedLocation,
170
- name,
171
- path,
172
- fullPath,
173
- pathParameters,
174
- queryParameters,
175
- queryParametersAll,
176
- extra,
177
- error,
178
- pageKey);
163
+ int get hashCode => Object .hash (uri, matchedLocation, name, path, fullPath,
164
+ pathParameters, extra, error, pageKey);
179
165
}
180
166
181
167
/// An inherited widget to host a [GoRouterStateRegistry] for the subtree.
0 commit comments