copyWith method

DialogOptions copyWith({
  1. double? startOffset,
  2. PopupFromStyle? fromStyle,
  3. bool? barrierDismissible,
  4. String? barrierLabel,
  5. Color? barrierColor,
  6. Duration? transitionDuration,
  7. RouteTransitionsBuilder? transitionBuilder,
  8. bool? useRootNavigator,
  9. RouteSettings? routeSettings,
  10. Offset? anchorPoint,
  11. bool? useSafeArea,
})

Implementation

DialogOptions copyWith({
  double? startOffset,
  PopupFromStyle? fromStyle,
  bool? barrierDismissible,
  String? barrierLabel,
  Color? barrierColor,
  Duration? transitionDuration,
  RouteTransitionsBuilder? transitionBuilder,
  bool? useRootNavigator,
  RouteSettings? routeSettings,
  Offset? anchorPoint,
  bool? useSafeArea,
}) =>
    DialogOptions(
        useSafeArea: useSafeArea ?? this.useSafeArea,
        anchorPoint: anchorPoint ?? this.anchorPoint,
        startOffset: startOffset ?? this.startOffset,
        fromStyle: fromStyle ?? this.fromStyle,
        barrierDismissible: barrierDismissible ?? this.barrierDismissible,
        barrierLabel: barrierLabel ?? this.barrierLabel,
        barrierColor: barrierColor ?? this.barrierColor,
        transitionDuration: transitionDuration ?? this.transitionDuration,
        transitionBuilder: transitionBuilder ?? this.transitionBuilder,
        useRootNavigator: useRootNavigator ?? this.useRootNavigator,
        routeSettings: routeSettings ?? this.routeSettings);