CustomRouter constructor

const CustomRouter({
  1. Function? transitionsBuilder,
  2. bool? barrierDismissible,
  3. int? durationInMilliseconds,
  4. int? reverseDurationInMilliseconds,
  5. bool? opaque,
  6. bool? generateNavigationHelperExtension,
  7. String? routesClassName,
  8. String? pathPrefix,
  9. required List<StackedRoute> routes,
  10. bool preferRelativeImports = true,
  11. String? replaceInRouteName,
  12. bool? deferredLoading,
})

Implementation

const CustomRouter({
  this.transitionsBuilder,
  this.barrierDismissible,
  this.durationInMilliseconds,
  this.reverseDurationInMilliseconds,
  this.opaque,
  bool? generateNavigationHelperExtension,
  String? routesClassName,
  String? pathPrefix,
  required List<StackedRoute> routes,
  bool preferRelativeImports = true,
  String? replaceInRouteName,
  bool? deferredLoading,
}) : super._(
        routes,
        preferRelativeImports,
        replaceInRouteName: replaceInRouteName,
        deferredLoading: deferredLoading ?? false,
        generateNavigationHelperExtension: generateNavigationHelperExtension,
        routesClassName: routesClassName,
        routePrefix: pathPrefix,
      );