copyWith method
PageRouteOptions
copyWith({
- bool? maintainState,
- bool? fullscreenDialog,
- String? title,
- RouteSettings? settings,
- bool? allowSnapshotting,
- bool? barrierDismissible,
- WidgetBuilder? builder,
- RoutePushStyle? style,
Implementation
PageRouteOptions copyWith({
bool? maintainState,
bool? fullscreenDialog,
String? title,
RouteSettings? settings,
bool? allowSnapshotting,
bool? barrierDismissible,
WidgetBuilder? builder,
RoutePushStyle? style,
}) =>
PageRouteOptions(
maintainState: maintainState ?? this.maintainState,
fullscreenDialog: fullscreenDialog ?? this.fullscreenDialog,
title: title ?? this.title,
settings: settings ?? this.settings,
allowSnapshotting: allowSnapshotting ?? this.allowSnapshotting,
barrierDismissible: barrierDismissible ?? this.barrierDismissible,
builder: builder ?? this.builder,
style: style ?? this.style,
);