copyWith method

  1. @useResult
FToastStyle copyWith({
  1. Duration? enterExitDuration,
  2. Curve? enterCurve,
  3. Curve? exitCurve,
  4. double? entranceExitOpacity,
  5. Duration? transitionDuration,
  6. Curve? transitionCurve,
  7. BoxConstraints? constraints,
  8. BoxDecoration? decoration,
  9. EdgeInsetsGeometry? padding,
  10. IconThemeData? iconStyle,
  11. double? iconSpacing,
  12. TextStyle? titleTextStyle,
  13. double? titleSpacing,
  14. TextStyle? descriptionTextStyle,
  15. 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,
);