FTappableMotion class

Motion-related properties for FTappable.

Mixed-in types
Available extensions

Constructors

FTappableMotion.new({Duration bounceDownDuration = const Duration(milliseconds: 100), Duration bounceUpDuration = const Duration(milliseconds: 120), Curve bounceDownCurve = Curves.easeOutQuart, Curve bounceUpCurve = Curves.easeOutCubic, Animatable<double> bounceTween = defaultBounceTween})
Creates a FTappableMotion.
const

Properties

bounceDownCurve Curve
The curve used to animate the scale of the tappable when pressed (down). Defaults to Curves.easeOutQuart.
final
bounceDownDuration Duration
The bounce animation's duration when the tappable is pressed down. Defaults to 100ms.
final
bounceTween Animatable<double>
The bounce's tween. Defaults to defaultBounceTween.
final
bounceUpCurve Curve
The curve used to animate the scale of the tappable when released (up). Defaults to Curves.easeOutCubic.
final
bounceUpDuration Duration
The bounce animation's duration when the tappable is released (up). Defaults to 120ms.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Object? _) FTappableMotion
Returns itself.
inherited
copyWith({Duration? bounceDownDuration, Duration? bounceUpDuration, Curve? bounceDownCurve, Curve? bounceUpCurve, Animatable<double>? bounceTween}) FTappableMotion

Available on FTappableMotion, provided by the $FTappableMotionTransformations extension

Returns a copy of this FTappableMotion with the given properties replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
lerp(FTappableMotion other, double t) FTappableMotion

Available on FTappableMotion, provided by the $FTappableMotionTransformations extension

Linearly interpolate between this and another FTappableMotion using the given factor t.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultBounceTween → const FImmutableTween<double>
The default bounce tween used by FTappableStyle. It scales the widget down to 0.97 on tap down and back to 1.0 on tap up.
noBounceTween → const FImmutableTween<double>
A tween that does not animate the scale of the tappable. It is used to disable the bounce effect.
none → const FTappableMotion
A FTappableMotion with no motion effects.