copyWith method
- @useResult
- Duration? enterExitDuration,
- Curve? enterCurve,
- Curve? exitCurve,
- double? entranceExitOpacity,
- Duration? transitionDuration,
- Curve? transitionCurve,
- BoxConstraints? constraints,
- BoxDecoration? decoration,
- EdgeInsetsGeometry? padding,
- IconThemeData? iconStyle,
- double? iconSpacing,
- TextStyle? titleTextStyle,
- double? titleSpacing,
- TextStyle? descriptionTextStyle,
- double? suffixSpacing,
inherited
Returns a copy of this FToastStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
Implementation
@useResult
FToastStyle copyWith({
Duration? enterExitDuration,
Curve? enterCurve,
Curve? exitCurve,
double? entranceExitOpacity,
Duration? transitionDuration,
Curve? transitionCurve,
BoxConstraints? constraints,
BoxDecoration? decoration,
EdgeInsetsGeometry? padding,
IconThemeData? iconStyle,
double? iconSpacing,
TextStyle? titleTextStyle,
double? titleSpacing,
TextStyle? descriptionTextStyle,
double? suffixSpacing,
}) => FToastStyle(
enterExitDuration: enterExitDuration ?? this.enterExitDuration,
enterCurve: enterCurve ?? this.enterCurve,
exitCurve: exitCurve ?? this.exitCurve,
entranceExitOpacity: entranceExitOpacity ?? this.entranceExitOpacity,
transitionDuration: transitionDuration ?? this.transitionDuration,
transitionCurve: transitionCurve ?? this.transitionCurve,
constraints: constraints ?? this.constraints,
decoration: decoration ?? this.decoration,
padding: padding ?? this.padding,
iconStyle: iconStyle ?? this.iconStyle,
iconSpacing: iconSpacing ?? this.iconSpacing,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
titleSpacing: titleSpacing ?? this.titleSpacing,
descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
suffixSpacing: suffixSpacing ?? this.suffixSpacing,
);