CustomRoute<T> constructor

const CustomRoute<T>({
  1. bool initial = false,
  2. bool fullscreenDialog = false,
  3. bool maintainState = true,
  4. String? name,
  5. String? path,
  6. bool fullMatch = false,
  7. required Type page,
  8. List<Type>? guards,
  9. bool usesPathAsKey = false,
  10. List<AutoRoute>? children,
  11. Function? customRouteBuilder,
  12. String? barrierLabel,
  13. int? barrierColor,
  14. Function? transitionsBuilder,
  15. int? durationInMilliseconds,
  16. int? reverseDurationInMilliseconds,
  17. bool opaque = true,
  18. bool barrierDismissible = false,
  19. Map<String, dynamic> meta = const {},
})

Implementation

const CustomRoute({
  bool initial = false,
  bool fullscreenDialog = false,
  bool maintainState = true,
  String? name,
  String? path,
  bool fullMatch = false,
  required Type page,
  List<Type>? guards,
  bool usesPathAsKey = false,
  List<AutoRoute>? children,
  this.customRouteBuilder,
  this.barrierLabel,
  this.barrierColor,
  this.transitionsBuilder,
  this.durationInMilliseconds,
  this.reverseDurationInMilliseconds,
  this.opaque = true,
  this.barrierDismissible = false,
  Map<String, dynamic> meta = const {},
}) : super(
        initial: initial,
        fullscreenDialog: fullscreenDialog,
        maintainState: maintainState,
        usesPathAsKey: usesPathAsKey,
        path: path,
        name: name,
        fullMatch: fullMatch,
        page: page,
        guards: guards,
        children: children,
        meta: meta,
      );