AppRoute<T> constructor
AppRoute<T> ({
- bool? allowSnapshotting,
- bool? barrierDismissible,
- bool? fullscreenDialog,
- bool? opaque,
- bool? maintainState,
- Color? barrierColor,
- String? barrierLabel,
- String? name,
- int? animationTime,
- int? animationReserveTime,
- Object? arguments,
- AnimationType? animationType,
- Curve? animationCurve,
- required Widget builder(
- BuildContext context
Implementation
AppRoute({
bool? allowSnapshotting,
bool? barrierDismissible,
bool? fullscreenDialog,
bool? opaque,
bool? maintainState,
super.barrierColor,
super.barrierLabel,
this.name,
this.animationTime,
this.animationReserveTime,
this.arguments,
this.animationType,
this.animationCurve,
required this.builder,
}) : super(
allowSnapshotting: allowSnapshotting ?? true,
barrierDismissible: barrierDismissible ?? false,
fullscreenDialog: fullscreenDialog ?? false,
opaque: opaque ?? true,
maintainState: maintainState ?? true,
transitionDuration: Duration(milliseconds: animationTime ?? 300),
reverseTransitionDuration: Duration(
milliseconds: animationReserveTime ?? animationTime ?? 300,
),
pageBuilder: (_, __, ___) => builder.call(_),
settings: RouteSettings(
name: name,
arguments: arguments,
),
);