// 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}';
  }
}
