// GENERATED CODE - DO NOT MODIFY BY HAND

// **************************************************************************
// AutoRouterGenerator
// **************************************************************************

// ignore_for_file: type=lint
// coverage:ignore-file

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:ui' as _i10;

import 'package:auto_route/auto_route.dart' as _i8;
import 'package:flutter/material.dart' as _i11;
import 'package:mnemo_cards/features/tests/test_page.dart' as _i7;
import 'package:mnemo_cards/main.dart' as _i5;
import 'package:mnemo_cards/pages/auth_page.dart' as _i1;
import 'package:mnemo_cards/pages/home_page.dart' as _i4;
import 'package:mnemo_cards/pages/profile_page.dart' as _i6;
import 'package:mnemo_cards/widgets/card_game/card_game_page.dart' as _i2;
import 'package:mnemo_cards/widgets/card_pack/card_pack_page.dart' as _i3;
import 'package:mnemo_cards_common/mnemo_cards_common.dart' as _i9;

abstract class $AppRouter extends _i8.RootStackRouter {
  $AppRouter({super.navigatorKey});

  @override
  final Map<String, _i8.PageFactory> pagesMap = {
    AuthPage.name: (routeData) {
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i1.AuthPage(),
      );
    },
    CardGamePage.name: (routeData) {
      final args = routeData.argsAs<CardGamePageArgs>();
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i2.CardGamePage(
          cards: args.cards,
          color: args.color,
          startCardId: args.startCardId,
          infinite: args.infinite,
          shuffle: args.shuffle,
          key: args.key,
        ),
      );
    },
    CardPackPage.name: (routeData) {
      final args = routeData.argsAs<CardPackPageArgs>();
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i3.CardPackPage(
          args.previewDto,
          key: args.key,
        ),
      );
    },
    HomePage.name: (routeData) {
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i4.HomePage(),
      );
    },
    MainTabsPage.name: (routeData) {
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i5.MainTabsPage(),
      );
    },
    ProfilePage.name: (routeData) {
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i6.ProfilePage(),
      );
    },
    TestPage.name: (routeData) {
      final args = routeData.argsAs<TestPageArgs>();
      return _i8.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i7.TestPage(args.testId),
      );
    },
  };
}

/// generated route for
/// [_i1.AuthPage]
class AuthPage extends _i8.PageRouteInfo<void> {
  const AuthPage({List<_i8.PageRouteInfo>? children})
      : super(
          AuthPage.name,
          initialChildren: children,
        );

  static const String name = 'AuthPage';

  static const _i8.PageInfo<void> page = _i8.PageInfo<void>(name);
}

/// generated route for
/// [_i2.CardGamePage]
class CardGamePage extends _i8.PageRouteInfo<CardGamePageArgs> {
  CardGamePage({
    required List<_i9.GameCardDto> cards,
    required _i10.Color? color,
    int? startCardId,
    bool infinite = false,
    bool shuffle = true,
    _i11.Key? key,
    List<_i8.PageRouteInfo>? children,
  }) : super(
          CardGamePage.name,
          args: CardGamePageArgs(
            cards: cards,
            color: color,
            startCardId: startCardId,
            infinite: infinite,
            shuffle: shuffle,
            key: key,
          ),
          initialChildren: children,
        );

  static const String name = 'CardGamePage';

  static const _i8.PageInfo<CardGamePageArgs> page =
      _i8.PageInfo<CardGamePageArgs>(name);
}

class CardGamePageArgs {
  const CardGamePageArgs({
    required this.cards,
    required this.color,
    this.startCardId,
    this.infinite = false,
    this.shuffle = true,
    this.key,
  });

  final List<_i9.GameCardDto> cards;

  final _i10.Color? color;

  final int? startCardId;

  final bool infinite;

  final bool shuffle;

  final _i11.Key? key;

  @override
  String toString() {
    return 'CardGamePageArgs{cards: $cards, color: $color, startCardId: $startCardId, infinite: $infinite, shuffle: $shuffle, key: $key}';
  }
}

/// generated route for
/// [_i3.CardPackPage]
class CardPackPage extends _i8.PageRouteInfo<CardPackPageArgs> {
  CardPackPage({
    required _i9.CardPackPreviewDto previewDto,
    _i11.Key? key,
    List<_i8.PageRouteInfo>? children,
  }) : super(
          CardPackPage.name,
          args: CardPackPageArgs(
            previewDto: previewDto,
            key: key,
          ),
          initialChildren: children,
        );

  static const String name = 'CardPackPage';

  static const _i8.PageInfo<CardPackPageArgs> page =
      _i8.PageInfo<CardPackPageArgs>(name);
}

class CardPackPageArgs {
  const CardPackPageArgs({
    required this.previewDto,
    this.key,
  });

  final _i9.CardPackPreviewDto previewDto;

  final _i11.Key? key;

  @override
  String toString() {
    return 'CardPackPageArgs{previewDto: $previewDto, key: $key}';
  }
}

/// generated route for
/// [_i4.HomePage]
class HomePage extends _i8.PageRouteInfo<void> {
  const HomePage({List<_i8.PageRouteInfo>? children})
      : super(
          HomePage.name,
          initialChildren: children,
        );

  static const String name = 'HomePage';

  static const _i8.PageInfo<void> page = _i8.PageInfo<void>(name);
}

/// generated route for
/// [_i5.MainTabsPage]
class MainTabsPage extends _i8.PageRouteInfo<void> {
  const MainTabsPage({List<_i8.PageRouteInfo>? children})
      : super(
          MainTabsPage.name,
          initialChildren: children,
        );

  static const String name = 'MainTabsPage';

  static const _i8.PageInfo<void> page = _i8.PageInfo<void>(name);
}

/// generated route for
/// [_i6.ProfilePage]
class ProfilePage extends _i8.PageRouteInfo<void> {
  const ProfilePage({List<_i8.PageRouteInfo>? children})
      : super(
          ProfilePage.name,
          initialChildren: children,
        );

  static const String name = 'ProfilePage';

  static const _i8.PageInfo<void> page = _i8.PageInfo<void>(name);
}

/// generated route for
/// [_i7.TestPage]
class TestPage extends _i8.PageRouteInfo<TestPageArgs> {
  TestPage({
    required String testId,
    List<_i8.PageRouteInfo>? children,
  }) : super(
          TestPage.name,
          args: TestPageArgs(testId: testId),
          initialChildren: children,
        );

  static const String name = 'TestPage';

  static const _i8.PageInfo<TestPageArgs> page =
      _i8.PageInfo<TestPageArgs>(name);
}

class TestPageArgs {
  const TestPageArgs({required this.testId});

  final String testId;

  @override
  String toString() {
    return 'TestPageArgs{testId: $testId}';
  }
}
