copyWith method
ToastOptions
copyWith({
- BoxConstraints? constraints,
- GestureTapCallback? onToastTap,
- TextStyle? textStyle,
- Duration? duration,
- Color? color,
- Axis? direction,
- ToastBuilder? builder,
- GestureTapCallback? onModalTap,
- Color? backgroundColor,
- Color? foregroundColor,
- double? gaussian,
- bool? ignoring,
- bool? absorbing,
- AlignmentGeometry? alignment,
- FlAnimationStyle? animationStyle,
- Duration? animationDuration,
- double? elevation,
- Color? shadowColor,
- ShapeBorder? shape,
- bool? borderOnForeground,
- BorderRadiusGeometry? borderRadius,
- bool? safeLTRB,
- bool? resizeToAvoidBottomInset,
- Duration? insetAnimationDuration,
- Curve? insetAnimationCurve,
Implementation
ToastOptions copyWith({
BoxConstraints? constraints,
GestureTapCallback? onToastTap,
TextStyle? textStyle,
Duration? duration,
Color? color,
Axis? direction,
ToastBuilder? builder,
GestureTapCallback? onModalTap,
Color? backgroundColor,
Color? foregroundColor,
double? gaussian,
bool? ignoring,
bool? absorbing,
AlignmentGeometry? alignment,
FlAnimationStyle? animationStyle,
Duration? animationDuration,
double? elevation,
Color? shadowColor,
ShapeBorder? shape,
bool? borderOnForeground,
BorderRadiusGeometry? borderRadius,
bool? safeLTRB,
bool? resizeToAvoidBottomInset,
Duration? insetAnimationDuration,
Curve? insetAnimationCurve,
}) =>
ToastOptions.extended(
color: color ?? this.color,
backgroundColor: backgroundColor ?? this.backgroundColor,
foregroundColor: foregroundColor ?? this.foregroundColor,
animationDuration: animationDuration ?? this.animationDuration,
animationStyle: animationStyle ?? this.animationStyle,
constraints: constraints ?? this.constraints,
onToastTap: onToastTap ?? this.onToastTap,
textStyle: textStyle ?? this.textStyle,
duration: duration ?? this.duration,
builder: builder ?? this.builder,
direction: direction ?? this.direction,
ignoring: ignoring ?? this.ignoring,
alignment: alignment ?? this.alignment,
onModalTap: onModalTap ?? this.onModalTap,
absorbing: ignoring ?? this.absorbing,
gaussian: gaussian ?? this.gaussian,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
borderRadius: borderRadius ?? this.borderRadius,
shape: shape ?? this.shape,
borderOnForeground: borderOnForeground ?? this.borderOnForeground,
safeLTRB: safeLTRB ?? this.safeLTRB,
resizeToAvoidBottomInset:
resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
insetAnimationDuration:
insetAnimationDuration ?? this.insetAnimationDuration,
insetAnimationCurve: insetAnimationCurve ?? this.insetAnimationCurve,
);