copyWith method
Returns a copy of this FTappableMotion with the given properties replaced.
Parameters
- FTappableMotion.bounceDownDuration - The bounce animation's duration when the tappable is pressed down.
- FTappableMotion.bounceUpDuration - The bounce animation's duration when the tappable is released (up).
- FTappableMotion.bounceDownCurve - The curve used to animate the scale of the tappable when pressed (down).
- FTappableMotion.bounceUpCurve - The curve used to animate the scale of the tappable when released (up).
- FTappableMotion.bounceTween - The bounce's tween.
- FTappableMotion.bounceFloor - The maximum number of pixels that the tappable can shrink during the bounce animation regardless of widget size.
Implementation
@useResult
FTappableMotion copyWith({
Duration? bounceDownDuration,
Duration? bounceUpDuration,
Curve? bounceDownCurve,
Curve? bounceUpCurve,
Animatable<double>? bounceTween,
double? Function()? bounceFloor,
}) => .new(
bounceDownDuration: bounceDownDuration ?? this.bounceDownDuration,
bounceUpDuration: bounceUpDuration ?? this.bounceUpDuration,
bounceDownCurve: bounceDownCurve ?? this.bounceDownCurve,
bounceUpCurve: bounceUpCurve ?? this.bounceUpCurve,
bounceTween: bounceTween ?? this.bounceTween,
bounceFloor: bounceFloor == null ? this.bounceFloor : bounceFloor(),
);