@@ -86,7 +86,7 @@ method.
86
86
87
87
<? code-excerpt "example/lib/readme_excerpts.dart (HomeRoute)"?>
88
88
``` dart
89
- class HomeRoute extends GoRouteData with _ $HomeRoute {
89
+ class HomeRoute extends GoRouteData with $HomeRoute {
90
90
const HomeRoute();
91
91
92
92
@override
@@ -108,7 +108,7 @@ The tree of routes is defined as an attribute on each of the top-level routes:
108
108
),
109
109
],
110
110
)
111
- class HomeRoute extends GoRouteData with _ $HomeRoute {
111
+ class HomeRoute extends GoRouteData with $HomeRoute {
112
112
const HomeRoute();
113
113
114
114
@override
@@ -124,7 +124,7 @@ class RedirectRoute extends GoRouteData {
124
124
}
125
125
126
126
@TypedGoRoute<LoginRoute>(path: '/login')
127
- class LoginRoute extends GoRouteData with _ $LoginRoute {
127
+ class LoginRoute extends GoRouteData with $LoginRoute {
128
128
LoginRoute({this.from});
129
129
final String? from;
130
130
@@ -211,7 +211,7 @@ Parameters (named or positional) not listed in the path of `TypedGoRoute` indica
211
211
<? code-excerpt "example/lib/readme_excerpts.dart (login)"?>
212
212
``` dart
213
213
@TypedGoRoute<LoginRoute>(path: '/login')
214
- class LoginRoute extends GoRouteData with _ $LoginRoute {
214
+ class LoginRoute extends GoRouteData with $LoginRoute {
215
215
LoginRoute({this.from});
216
216
final String? from;
217
217
@@ -229,7 +229,7 @@ For query parameters with a **non-nullable** type, you can define a default valu
229
229
<? code-excerpt "example/lib/readme_excerpts.dart (MyRoute)"?>
230
230
``` dart
231
231
@TypedGoRoute<MyRoute>(path: '/my-route')
232
- class MyRoute extends GoRouteData with _ $MyRoute {
232
+ class MyRoute extends GoRouteData with $MyRoute {
233
233
MyRoute({this.queryParameter = 'defaultValue'});
234
234
final String queryParameter;
235
235
@@ -250,7 +250,7 @@ parameter with the special name `$extra`:
250
250
251
251
<? code-excerpt "example/lib/readme_excerpts.dart (PersonRouteWithExtra)"?>
252
252
``` dart
253
- class PersonRouteWithExtra extends GoRouteData with _ $PersonRouteWithExtra {
253
+ class PersonRouteWithExtra extends GoRouteData with $PersonRouteWithExtra {
254
254
PersonRouteWithExtra(this.$extra);
255
255
final Person? $extra;
256
256
@@ -282,7 +282,7 @@ You can, of course, combine the use of path, query and $extra parameters:
282
282
``` dart
283
283
@TypedGoRoute<HotdogRouteWithEverything>(path: '/:ketchup')
284
284
class HotdogRouteWithEverything extends GoRouteData
285
- with _ $HotdogRouteWithEverything {
285
+ with $HotdogRouteWithEverything {
286
286
HotdogRouteWithEverything(this.ketchup, this.mustard, this.$extra);
287
287
final bool ketchup; // A required path parameter.
288
288
final String? mustard; // An optional query parameter.
@@ -342,7 +342,7 @@ The code generator can convert simple types like `int` and `enum` to/from the
342
342
enum BookKind { all, popular, recent }
343
343
344
344
@TypedGoRoute<BooksRoute>(path: '/books')
345
- class BooksRoute extends GoRouteData with _ $BooksRoute {
345
+ class BooksRoute extends GoRouteData with $BooksRoute {
346
346
BooksRoute({this.kind = BookKind.popular});
347
347
final BookKind kind;
348
348
@@ -371,7 +371,7 @@ method of the base class instead of the `build` method:
371
371
372
372
<? code-excerpt "example/lib/readme_excerpts.dart (MyMaterialRouteWithKey)"?>
373
373
``` dart
374
- class MyMaterialRouteWithKey extends GoRouteData with _ $MyMaterialRouteWithKey {
374
+ class MyMaterialRouteWithKey extends GoRouteData with $MyMaterialRouteWithKey {
375
375
const MyMaterialRouteWithKey();
376
376
static const LocalKey _key = ValueKey<String>('my-route-with-key');
377
377
@override
@@ -390,7 +390,7 @@ Overriding the `buildPage` method is also useful for custom transitions:
390
390
391
391
<? code-excerpt "example/lib/readme_excerpts.dart (FancyRoute)"?>
392
392
``` dart
393
- class FancyRoute extends GoRouteData with _ $FancyRoute {
393
+ class FancyRoute extends GoRouteData with $FancyRoute {
394
394
const FancyRoute();
395
395
@override
396
396
CustomTransitionPage<void> buildPage(
@@ -441,7 +441,7 @@ class MyShellRouteData extends ShellRouteData {
441
441
}
442
442
443
443
// For GoRoutes:
444
- class MyGoRouteData extends GoRouteData with _ $MyGoRouteData {
444
+ class MyGoRouteData extends GoRouteData with $MyGoRouteData {
445
445
const MyGoRouteData();
446
446
447
447
static final GlobalKey<NavigatorState> $parentNavigatorKey = rootNavigatorKey;
0 commit comments