CustomRoute<T> constructor
const
CustomRoute<T> ({
- 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, - Function? customRouteBuilder,
- String? barrierLabel,
- int? barrierColor,
- Function? transitionsBuilder,
- int? durationInMilliseconds,
- int? reverseDurationInMilliseconds,
- bool opaque = true,
- bool barrierDismissible = false,
- 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,
);