MaterialRouter constructor

const MaterialRouter({
  1. bool preferRelativeImports = true,
  2. required List<StackedRoute> routes,
  3. bool? generateNavigationHelperExtension,
  4. String? routesClassName,
  5. String? pathPrefix,
  6. String? replaceInRouteName,
  7. bool? deferredLoading,
})

Implementation

const MaterialRouter({
  bool preferRelativeImports = true,
  required List<StackedRoute> routes,
  bool? generateNavigationHelperExtension,
  String? routesClassName,
  String? pathPrefix,
  String? replaceInRouteName,
  bool? deferredLoading,
}) : super._(
        routes,
        preferRelativeImports,
        generateNavigationHelperExtension: generateNavigationHelperExtension,
        routePrefix: pathPrefix,
        routesClassName: routesClassName,
        replaceInRouteName: replaceInRouteName,
        deferredLoading: deferredLoading ?? false,
      );