copyWith method

PageRouteOptions copyWith({
  1. bool? maintainState,
  2. bool? fullscreenDialog,
  3. String? title,
  4. RouteSettings? settings,
  5. bool? allowSnapshotting,
  6. bool? barrierDismissible,
  7. WidgetBuilder? builder,
  8. 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,
    );