Bounce class

Inheritance

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 setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
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 setterinherited
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

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() BounceState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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