copyWith method
DialogOptions
copyWith({
- double? startOffset,
- PopupFromStyle? fromStyle,
- bool? barrierDismissible,
- String? barrierLabel,
- Color? barrierColor,
- Duration? transitionDuration,
- RouteTransitionsBuilder? transitionBuilder,
- RouteSettings? routeSettings,
- Offset? anchorPoint,
- 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);