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.
Implementation
@useResult
FTappableMotion copyWith({
Duration? bounceDownDuration,
Duration? bounceUpDuration,
Curve? bounceDownCurve,
Curve? bounceUpCurve,
Animatable<double>? bounceTween,
}) => FTappableMotion(
bounceDownDuration: bounceDownDuration ?? this.bounceDownDuration,
bounceUpDuration: bounceUpDuration ?? this.bounceUpDuration,
bounceDownCurve: bounceDownCurve ?? this.bounceDownCurve,
bounceUpCurve: bounceUpCurve ?? this.bounceUpCurve,
bounceTween: bounceTween ?? this.bounceTween,
);