Files
2022-11-17 17:11:40 +01:00

65 lines
1.7 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'routes.dart';
// **************************************************************************
// GoRouterGenerator
// **************************************************************************
List<GoRoute> get $appRoutes => [
$splashRoute,
$homeRoute,
$loginRoute,
];
GoRoute get $splashRoute => GoRouteData.$route(
path: '/splash',
factory: $SplashRouteExtension._fromState,
);
extension $SplashRouteExtension on SplashRoute {
static SplashRoute _fromState(GoRouterState state) => const SplashRoute();
String get location => GoRouteData.$location(
'/splash',
);
void go(BuildContext context) => context.go(location, extra: this);
void push(BuildContext context) => context.push(location, extra: this);
}
GoRoute get $homeRoute => GoRouteData.$route(
path: '/home',
factory: $HomeRouteExtension._fromState,
);
extension $HomeRouteExtension on HomeRoute {
static HomeRoute _fromState(GoRouterState state) => const HomeRoute();
String get location => GoRouteData.$location(
'/home',
);
void go(BuildContext context) => context.go(location, extra: this);
void push(BuildContext context) => context.push(location, extra: this);
}
GoRoute get $loginRoute => GoRouteData.$route(
path: '/login',
factory: $LoginRouteExtension._fromState,
);
extension $LoginRouteExtension on LoginRoute {
static LoginRoute _fromState(GoRouterState state) => const LoginRoute();
String get location => GoRouteData.$location(
'/login',
);
void go(BuildContext context) => context.go(location, extra: this);
void push(BuildContext context) => context.push(location, extra: this);
}