RippleCallbacks class

A container for gesture callbacks used by RippleContainer.

This class encapsulates various gesture callbacks such as tap, long press, drag, and double tap. Assigning these callbacks allows RippleContainer to respond to user interactions accordingly.

Constructors

RippleCallbacks({GestureTapDownCallback? onTapDown, GestureTapCallback? onTap, GestureTapUpCallback? onTapUp, GestureTapCancelCallback? onTapCancel, GestureLongPressDownCallback? onLongPressDown, GestureLongPressCallback? onLongPress, GestureLongPressUpCallback? onLongPressUp, GestureLongPressCancelCallback? onLongPressCancel, GestureDragStartCallback? onDragStart, GestureDragUpdateCallback? onDragUpdate, GestureDragEndCallback? onDragEnd, GestureDragCancelCallback? onDragCancel, GestureDoubleTapCallback? onDoubleTap, ValueChanged<bool>? onHover, ValueChanged<bool>? onFocusChange})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onDoubleTap GestureDoubleTapCallback?
Called when a double tap gesture is recognized.
final
onDragCancel GestureDoubleTapCallback?
Called when a drag gesture is canceled.
final
onDragEnd GestureDragEndCallback?
Called when a drag gesture ends.
final
onDragStart GestureDragStartCallback?
Called when a drag gesture starts.
final
onDragUpdate GestureDragUpdateCallback?
Called when a drag gesture is updated.
final
onFocusChange ValueChanged<bool>?
Called when the container gains or loses input focus.
final
onHover ValueChanged<bool>?
Called when a pointer enters or exits the container area (web / desktop). The bool is true on enter, false on exit.
final
onLongPress GestureDoubleTapCallback?
Called when a long press gesture is recognized.
final
onLongPressCancel GestureDoubleTapCallback?
Called when a long press gesture is canceled.
final
onLongPressDown GestureLongPressDownCallback?
Called when a long press gesture has been detected.
final
onLongPressUp GestureDoubleTapCallback?
Called when a long press gesture is completed.
final
onTap GestureDoubleTapCallback?
Called when a tap gesture is recognized.
final
onTapCancel GestureDoubleTapCallback?
Called when a tap gesture is canceled.
final
onTapDown GestureTapDownCallback?
Called when a tap gesture has been detected.
final
onTapUp GestureTapUpCallback?
Called when a tap gesture is completed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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