123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- // GENERATED CODE - DO NOT MODIFY BY HAND
- // **************************************************************************
- // AutoRouterGenerator
- // **************************************************************************
- // ignore_for_file: type=lint
- // coverage:ignore-file
- part of 'basic_page_router.dart';
- abstract class _$BasicPageRouter extends RootStackRouter {
- // ignore: unused_element
- _$BasicPageRouter({super.navigatorKey});
- @override
- final Map<String, PageFactory> pagesMap = {
- GlobalWebPageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<GlobalWebPageRouteArgs>(
- orElse: () => GlobalWebPageRouteArgs(
- isShowAppBar: pathParams.getBool('isShowAppBar'),
- initialUrl: pathParams.getString('initialUrl'),
- title: pathParams.getString('title'),
- ));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: GlobalWebPage(
- key: args.key,
- isShowAppBar: args.isShowAppBar,
- initialUrl: args.initialUrl,
- title: args.title,
- ),
- );
- },
- PreviewPhotoPageRoute.name: (routeData) {
- final args = routeData.argsAs<PreviewPhotoPageRouteArgs>();
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: PreviewPhotoPage(
- key: args.key,
- images: args.images,
- position: args.position,
- ),
- );
- },
- };
- }
- /// generated route for
- /// [GlobalWebPage]
- class GlobalWebPageRoute extends PageRouteInfo<GlobalWebPageRouteArgs> {
- GlobalWebPageRoute({
- Key? key,
- required bool isShowAppBar,
- required String initialUrl,
- required String title,
- List<PageRouteInfo>? children,
- }) : super(
- GlobalWebPageRoute.name,
- args: GlobalWebPageRouteArgs(
- key: key,
- isShowAppBar: isShowAppBar,
- initialUrl: initialUrl,
- title: title,
- ),
- rawPathParams: {
- 'isShowAppBar': isShowAppBar,
- 'initialUrl': initialUrl,
- 'title': title,
- },
- initialChildren: children,
- );
- static const String name = 'GlobalWebPageRoute';
- static const PageInfo<GlobalWebPageRouteArgs> page =
- PageInfo<GlobalWebPageRouteArgs>(name);
- }
- class GlobalWebPageRouteArgs {
- const GlobalWebPageRouteArgs({
- this.key,
- required this.isShowAppBar,
- required this.initialUrl,
- required this.title,
- });
- final Key? key;
- final bool isShowAppBar;
- final String initialUrl;
- final String title;
- @override
- String toString() {
- return 'GlobalWebPageRouteArgs{key: $key, isShowAppBar: $isShowAppBar, initialUrl: $initialUrl, title: $title}';
- }
- }
- /// generated route for
- /// [PreviewPhotoPage]
- class PreviewPhotoPageRoute extends PageRouteInfo<PreviewPhotoPageRouteArgs> {
- PreviewPhotoPageRoute({
- Key? key,
- required List<String> images,
- required int position,
- List<PageRouteInfo>? children,
- }) : super(
- PreviewPhotoPageRoute.name,
- args: PreviewPhotoPageRouteArgs(
- key: key,
- images: images,
- position: position,
- ),
- initialChildren: children,
- );
- static const String name = 'PreviewPhotoPageRoute';
- static const PageInfo<PreviewPhotoPageRouteArgs> page =
- PageInfo<PreviewPhotoPageRouteArgs>(name);
- }
- class PreviewPhotoPageRouteArgs {
- const PreviewPhotoPageRouteArgs({
- this.key,
- required this.images,
- required this.position,
- });
- final Key? key;
- final List<String> images;
- final int position;
- @override
- String toString() {
- return 'PreviewPhotoPageRouteArgs{key: $key, images: $images, position: $position}';
- }
- }
|