copyWith method

  1. @useResult
FToasterStyle copyWith({
  1. double? max,
  2. EdgeInsetsGeometry? padding,
  3. FToasterExpandBehavior? expandBehavior,
  4. Duration? expandHoverEnterDuration,
  5. Duration? expandHoverExitDuration,
  6. double? expandStartSpacing,
  7. double? expandSpacing,
  8. double? collapsedProtrusion,
  9. double? collapsedScale,
  10. FToasterMotion motion(
    1. FToasterMotion motion
    )?,
  11. FToastAlignment? toastAlignment,
  12. FToastStyle toastStyle(
    1. FToastStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FToasterStyle copyWith({
  double? max,
  EdgeInsetsGeometry? padding,
  FToasterExpandBehavior? expandBehavior,
  Duration? expandHoverEnterDuration,
  Duration? expandHoverExitDuration,
  double? expandStartSpacing,
  double? expandSpacing,
  double? collapsedProtrusion,
  double? collapsedScale,
  FToasterMotion Function(FToasterMotion motion)? motion,
  FToastAlignment? toastAlignment,
  FToastStyle Function(FToastStyle style)? toastStyle,
}) => FToasterStyle(
  max: max ?? this.max,
  padding: padding ?? this.padding,
  expandBehavior: expandBehavior ?? this.expandBehavior,
  expandHoverEnterDuration: expandHoverEnterDuration ?? this.expandHoverEnterDuration,
  expandHoverExitDuration: expandHoverExitDuration ?? this.expandHoverExitDuration,
  expandStartSpacing: expandStartSpacing ?? this.expandStartSpacing,
  expandSpacing: expandSpacing ?? this.expandSpacing,
  collapsedProtrusion: collapsedProtrusion ?? this.collapsedProtrusion,
  collapsedScale: collapsedScale ?? this.collapsedScale,
  motion: motion != null ? motion(this.motion) : this.motion,
  toastAlignment: toastAlignment ?? this.toastAlignment,
  toastStyle: toastStyle != null ? toastStyle(this.toastStyle) : this.toastStyle,
);