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<
StackedRoute> ? children, - Function? customRouteBuilder,
- String? barrierLabel,
- int? barrierColor,
- Function? transitionsBuilder,
- int? durationInMilliseconds,
- int? reverseDurationInMilliseconds,
- bool? opaque = true,
- bool? barrierDismissible = false,
- Map<
String, dynamic> meta = const {}, - bool? deferredLoading,
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<StackedRoute>? children,
this.customRouteBuilder,
this.barrierLabel,
this.barrierColor,
this.transitionsBuilder,
this.durationInMilliseconds,
this.reverseDurationInMilliseconds,
this.opaque = true,
this.barrierDismissible = false,
Map<String, dynamic> meta = const {},
bool? deferredLoading,
}) : super(
initial: initial,
fullscreenDialog: fullscreenDialog,
maintainState: maintainState,
usesPathAsKey: usesPathAsKey,
path: path,
name: name,
fullMatch: fullMatch,
page: page,
guards: guards,
children: children,
meta: meta,
deferredLoading: deferredLoading,
);