routes property

  1. @override
List<AutoRoute> get routes

The list of route entries to match against

Implementation

@override
List<AutoRoute> get routes {
  return [
    AutoRoute(
      path: '/',
      page: IndexRoute.page,
      children: [
        AutoRoute(
          path: 'nothing',
          page: NothingRoute.page,
          type: kFadeRouteType,
        ),
        AutoRoute(
          path: 'story',
          page: StoryRoute.page,
          type: kFadeRouteType,
        ),
        AutoRoute(
          path: 'document',
          page: DocumentRoute.page,
          type: kFadeRouteType,
        ),
      ],
    ),
    RedirectRoute(path: '*', redirectTo: '/'),
  ];
}