blob: e4d75ec81631276dccbf2d881e943650f6555df8 [file] [log] [blame]
RouteBase get $namedEscapedRoute => GoRouteData.$route(
path: '/named-route',
name: r'named$Route',
factory: $NamedEscapedRouteExtension._fromState,
);
extension $NamedEscapedRouteExtension on NamedEscapedRoute {
static NamedEscapedRoute _fromState(GoRouterState state) =>
NamedEscapedRoute();
String get location => GoRouteData.$location(
'/named-route',
);
void go(BuildContext context) => context.go(location);
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
void pushReplacement(BuildContext context) =>
context.pushReplacement(location);
void replace(BuildContext context) => context.replace(location);
}