Bounce class
Constructors
Bounce ({Key ? key , required Widget child , dynamic onTap ()?, dynamic onTapUp (TapUpDetails )?, dynamic onSecondaryTapUp (TapUpDetails )?, dynamic onLongPress (TapDownDetails )?, HitTestBehavior behavior = HitTestBehavior.deferToChild , Duration duration = _defaultDuration , Duration tapDelay = _defaultTapDelay , Duration longPressDuration = _defaultLongPressDuration , bool scale = true , double scaleFactor = 0.95 , bool tilt = true , double tiltAngle = pi / 10 , FilterQuality ? filterQuality = FilterQuality.high , MouseCursor ? cursor })
const
Properties
behavior
→ HitTestBehavior
final
child
→ Widget
The child to which the bounce effect will be applied
final
cursor
→ MouseCursor ?
The cursor to use when hovering over the widget.
final
duration
→ Duration
The duration for the scale and rotation animations, when enabled.
final
filterQuality
→ FilterQuality ?
The filter quality to use for the Transform .
final
hashCode
→ int
The hash code for this object.
no setter inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
longPressDuration
→ Duration
The duration after which, if the user is still pressing, the onLongPress callback will be triggered.
Defaults to defaultLongPressDuration
.
final
onLongPress
→ (dynamic Function(TapDownDetails ) ?)
The callback fired when the widget is held for a few seconds.
final
onSecondaryTapUp
→ (dynamic Function(TapUpDetails ) ?)
The callback fired when the user's secondary pointer is lifted from the widget.
final
onTap
→ (dynamic Function() ?)
The callback fired when the user's finger is lifted from the widget.
final
onTapUp
→ (dynamic Function(TapUpDetails ) ?)
The callback fired when the user's finger is lifted from the widget.
Usually provided instead of onTap , to obtain the TapUpDetails object associated with the touch event.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scale
→ bool
Whether the widget should apply the scale effect, in case you want it temporarily disabled.
final
scaleFactor
→ double
The minimum scale factor applied by the scale effect.
final
tapDelay
→ Duration
The minimum delay to wait for before triggering onTap block after the bounce effect is starting to reverse .
final
tilt
→ bool
Whether the widget should apply a tilt effect.
final
tiltAngle
→ double
The maximum angle to which the tilt effect can rotate the widget.
final