GestureListener class

Listener to touch gestures.

GestureListeners can override only the gestures it is interested in.

Each gesture returns true if the event is consumed or false if it should continue to alert other listeners.

Constructors

GestureListener({GestureSinglePointCallback? onTapTest, GestureCancelCallback? onTapCancel, GestureSinglePointCallback? onLongPress, GestureSinglePointCallback? onTap, GestureSinglePointCallback? onHover, GestureDragStartCallback? onDragStart, GestureDragUpdateCallback? onDragUpdate, GestureDragEndCallback? onDragEnd, GestureCallback? onFocus, GestureCallback? onBlur})

Properties

hashCode int
The hash code for this object.
no setterinherited
onBlur → GestureCallback?
Called when the chart is blured.
final
onDragEnd → GestureDragEndCallback?
final
onDragStart → GestureDragStartCallback?
Called when the tap event has moved beyond a threshold indicating that the user is dragging.
final
onDragUpdate → GestureDragUpdateCallback?
final
onFocus → GestureCallback?
Called when the chart is focused.
final
onHover → GestureSinglePointCallback?
Called when a mouse hovers over the chart. (No tap event).
final
onLongPress → GestureSinglePointCallback?
Called after the tap event has been going on for a period of time (500ms) without moving much (20px). The onTap or onDragStart gestures can still trigger after this gesture.
final
onTap → GestureSinglePointCallback?
Called on tap up if not dragging.
final
onTapCancel → GestureCancelCallback
Called if onTapTest was previously called, but listener is being preempted.
final
onTapTest → GestureSinglePointCallback
Called before all gestures (except onHover) as a preliminary test to see who is interested in an event.
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

Static Properties

defaultTapCancel → GestureCancelCallback
final
defaultTapTest → GestureSinglePointCallback
final