copyWith method

  1. @useResult
FToastStyle copyWith({
  1. BoxConstraints? constraints,
  2. BoxDecoration? decoration,
  3. ImageFilter? backgroundFilter,
  4. EdgeInsetsGeometry? padding,
  5. IconThemeData? iconStyle,
  6. double? iconSpacing,
  7. TextStyle? titleTextStyle,
  8. double? titleSpacing,
  9. TextStyle? descriptionTextStyle,
  10. double? suffixSpacing,
  11. FToastMotion motion(
    1. FToastMotion motion
    )?,
})

Returns a copy of this FToastStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FToastStyle copyWith({
  BoxConstraints? constraints,
  BoxDecoration? decoration,
  ImageFilter? backgroundFilter,
  EdgeInsetsGeometry? padding,
  IconThemeData? iconStyle,
  double? iconSpacing,
  TextStyle? titleTextStyle,
  double? titleSpacing,
  TextStyle? descriptionTextStyle,
  double? suffixSpacing,
  FToastMotion Function(FToastMotion motion)? motion,
}) => FToastStyle(
  constraints: constraints ?? this.constraints,
  decoration: decoration ?? this.decoration,
  backgroundFilter: backgroundFilter ?? this.backgroundFilter,
  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,
  motion: motion != null ? motion(this.motion) : this.motion,
);