copyWith method
ModalBoxOptions
copyWith({
- GestureTapCallback? onModalTap,
- Color? backgroundColor,
- Color? foregroundColor,
- bool? ignoring,
- bool? absorbing,
- double? gaussian,
- AlignmentGeometry? alignment,
- TextStyle? textStyle,
- BorderRadiusGeometry? borderRadius,
- MaterialType? type,
- double? elevation,
- Color? shadowColor,
- ShapeBorder? shape,
- bool? borderOnForeground,
- BoxConstraints? constraints,
- bool? safeLTRB,
- bool? resizeToAvoidBottomInset,
- Duration? insetAnimationDuration,
- Curve? insetAnimationCurve,
Implementation
ModalBoxOptions copyWith({
GestureTapCallback? onModalTap,
Color? backgroundColor,
Color? foregroundColor,
bool? ignoring,
bool? absorbing,
double? gaussian,
AlignmentGeometry? alignment,
TextStyle? textStyle,
BorderRadiusGeometry? borderRadius,
MaterialType? type,
double? elevation,
Color? shadowColor,
ShapeBorder? shape,
bool? borderOnForeground,
BoxConstraints? constraints,
bool? safeLTRB,
bool? resizeToAvoidBottomInset,
Duration? insetAnimationDuration,
Curve? insetAnimationCurve,
}) =>
ModalBoxOptions(
alignment: alignment ?? this.alignment,
onModalTap: onModalTap ?? this.onModalTap,
backgroundColor: backgroundColor ?? this.backgroundColor,
ignoring: ignoring ?? this.ignoring,
absorbing: absorbing ?? this.absorbing,
gaussian: gaussian ?? this.gaussian,
type: type ?? this.type,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
textStyle: textStyle ?? this.textStyle,
borderRadius: borderRadius ?? this.borderRadius,
shape: shape ?? this.shape,
borderOnForeground: borderOnForeground ?? this.borderOnForeground,
foregroundColor: foregroundColor ?? this.foregroundColor,
constraints: constraints ?? this.constraints,
safeLTRB: safeLTRB ?? this.safeLTRB,
resizeToAvoidBottomInset:
resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
insetAnimationDuration:
insetAnimationDuration ?? this.insetAnimationDuration,
insetAnimationCurve: insetAnimationCurve ?? this.insetAnimationCurve,
);