GestureType enum

Types of Gestures.

A chart can responses to gesture types the same as GestureDetector, except that pan series, horizontal drag series and vertical drag series are uniformed into scale series.

Besides, a hover type and a scroll type is defined for mouse interactions.

See also:

Inheritance

Constructors

GestureType()
const

Values

mouseEnter → const GestureType

Triggered when a mouse pointer has entered this chart.

This is triggered when the pointer, with or without buttons pressed, has started to be contained by the region of this chart. More specifically, this is triggered by the following cases:

  • This chart has appeared under a pointer.
  • This chart has moved to under a pointer.
  • A new pointer has been added to somewhere within this chart.
  • An existing pointer has moved into this chart.

This is not always matched by an mouseExit. If the Chart is unmounted while being hovered by a pointer, the mouseExit of the chart will not be emitted. For more details, see mouseEnter.

A gesture of this type has no details.

mouseExit → const GestureType

Triggered when a mouse pointer has exited this chart when the chart is still mounted.

This is triggered when the pointer, with or without buttons pressed, has stopped being contained by the region of this chart, except when the exit is caused by the disappearance of this chart. More specifically, this is triggered by the following cases:

  • A pointer that is hovering this chart has moved away.
  • A pointer that is hovering this chart has been removed.
  • This chart, which is being hovered by a pointer, has moved away.

And is not triggered by the following case:

  • This chart, which is being hovered by a pointer, has disappeared.

This means that a mouseExit might not be matched by a mouseEnter.

A gesture of this type has no details.

tap → const GestureType

A tap with a primary button has occurred.

This triggers when the tap gesture wins. If the tap gesture did not win, tapCancel is emitted instead.

A gesture of this type has no detail.

tapCancel → const GestureType

The pointer that previously triggered tapDown will not end up causing a tap.

This is emitted after tapDown, and instead of tapUp and tap, if the tap gesture did not win.

A gesture of this type has no detail.

tapDown → const GestureType

A pointer that might cause a tap with a primary button has contacted the screen at a particular location.

This is emitted after a short timeout, even if the winning gesture has not yet been selected. If the tap gesture wins, tapUp will be emitted, otherwise tapCancel will be emitted.

A gesture of this type has details of TapDownDetails.

tapUp → const GestureType

A pointer that will trigger a tap with a primary button has stopped contacting the screen at a particular location.

This triggers immediately before tap in the case of the tap gesture winning. If the tap gesture did not win, tapCancel is emitted instead.

A gesture of this type has details of TapUpDetails.

doubleTap → const GestureType

The user has tapped the screen with a primary button at the same location twice in quick succession.

A gesture of this type has no detail.

doubleTapCancel → const GestureType

The pointer that previously triggered doubleTapDown will not end up causing a double tap.

A gesture of this type has no detail.

doubleTapDown → const GestureType

A pointer that might cause a double tap has contacted the screen at a particular location.

Triggered immediately after the down gesture of the second tap.

If the user completes the double tap and the gesture wins, doubleTap will be emitted after this gesture. Otherwise, doubleTapCancel will be emitted after this gesture.

A gesture of this type has details of TapDownDetails.

scaleEnd → const GestureType

The pointers are no longer in contact with the screen.

A gesture of this type has details of ScaleEndDetails.

scaleStart → const GestureType

The pointers in contact with the screen have established a focal point and initial scale of 1.0.

A gesture of this type has details of ScaleStartDetails.

scaleUpdate → const GestureType

The pointers in contact with the screen have indicated a new focal point and/or scale.

A gesture of this type has details of ScaleUpdateDetails.

longPress → const GestureType

Called when a long press gesture with a primary button has been recognized.

Triggered when a pointer has remained in contact with the screen at the same location for a long period of time.

This is equivalent to (and is emitted immediately after) longPressStart. The only difference between the two is that this gesture does not contain details of the position at which the pointer initially contacted the screen.

A gesture of this type has no details.

longPressCancel → const GestureType

A pointer that previously triggered longPressDown will not end up causing a long-press.

This triggers once the gesture loses if longPressDown has previously been triggered.

If the user completed the long-press, and the gesture won, then longPressStart and longPress are emitted instead.

A gesture of this type has no details.

longPressDown → const GestureType

The pointer has contacted the screen with a primary button, which might be the start of a long-press.

This triggers after the pointer down gesture.

If the user completes the long-press, and this gesture wins, longPressStart will be emitted after this gesture. Otherwise, longPressCancel will be emitted after this gesture.

A gesture of this type has details of LongPressDownDetails.

longPressEnd → const GestureType

A pointer that has triggered a long-press with a primary button has stopped contacting the screen.

This is equivalent to (and is emitted immediately before) longPressUp. The only difference between the two is that this gesture contains details of the state of the pointer when it stopped contacting the screen, whereas longPressUp does not.

A gesture of this type has details of LongPressEndDetails.

longPressMoveUpdate → const GestureType

A pointer has been drag-moved after a long-press with a primary button.

A gesture of this type has details of LongPressMoveUpdateDetails.

longPressStart → const GestureType

Called when a long press gesture with a primary button has been recognized.

Triggered when a pointer has remained in contact with the screen at the same location for a long period of time.

This is equivalent to (and is emitted immediately before) longPress. The only difference between the two is that this gesture contains details of the position at which the pointer initially contacted the screen, whereas longPress does not.

A gesture of this type has details of LongPressStartDetails.

longPressUp → const GestureType

A pointer that has triggered a long-press with a primary button has stopped contacting the screen.

This is equivalent to (and is emitted immediately after) longPressEnd. The only difference between the two is that this gesture does not contain details of the state of the pointer when it stopped contacting the screen.

A gesture of this type has no details.

forcePressEnd → const GestureType

The pointer is no longer in contact with the screen.

Note that this gesture will only be fired on devices with pressure detecting screens.

A gesture of this type has details of ForcePressDetails.

forcePressPeak → const GestureType

The pointer is in contact with the screen and has pressed with the maximum force. The amount of force is at least ForcePressGestureRecognizer.peakPressure.

Note that this gesture will only be fired on devices with pressure detecting screens.

A gesture of this type has details of ForcePressDetails.

forcePressStart → const GestureType

The pointer is in contact with the screen and has pressed with sufficient force to initiate a force press. The amount of force is at least ForcePressGestureRecognizer.startPressure.

Note that this gesture will only be fired on devices with pressure detecting screens.

A gesture of this type has details of ForcePressDetails.

forcePressUpdate → const GestureType

A pointer is in contact with the screen, has previously passed the ForcePressGestureRecognizer.startPressure and is either moving on the plane of the screen, pressing the screen with varying forces or both simultaneously.

Note that this gesture will only be fired on devices with pressure detecting screens.

A gesture of this type has details of ForcePressDetails.

secondaryLongPress → const GestureType

Called when a long press gesture with a secondary button has been recognized.

Triggered when a pointer has remained in contact with the screen at the same location for a long period of time.

This is equivalent to (and is emitted immediately after) secondaryLongPressStart. The only difference between the two is that this gesture does not contain details of the position at which the pointer initially contacted the screen.

A gesture of this type has no details.

secondaryLongPressCancel → const GestureType

A pointer that previously triggered secondaryLongPressDown will not end up causing a long-press.

This triggers once the gesture loses if secondaryLongPressDown has previously been triggered.

If the user completed the long-press, and the gesture won, then secondaryLongPressStart and secondaryLongPress are emitted instead.

A gesture of this type has no details.

secondaryLongPressDown → const GestureType

The pointer has contacted the screen with a secondary button, which might be the start of a long-press.

This triggers after the pointer down gesture.

If the user completes the long-press, and this gesture wins, secondaryLongPressStart will be emitted after this gesture. Otherwise, secondaryLongPressCancel will be emitted after this gesture.

A gesture of this type has details of LongPressDownDetails.

secondaryLongPressEnd → const GestureType

A pointer that has triggered a long-press with a primary button has stopped contacting the screen.

This is equivalent to (and is emitted immediately before) longPressUp. The only difference between the two is that this gesture contains details of the state of the pointer when it stopped contacting the screen, whereas longPressUp does not.

A gesture of this type has details of LongPressEndDetails.

secondaryLongPressMoveUpdate → const GestureType

A pointer has been drag-moved after a long press with a secondary button.

A gesture of this type has details of LongPressMoveUpdateDetails.

secondaryLongPressStart → const GestureType

Called when a long press gesture with a secondary button has been recognized.

Triggered when a pointer has remained in contact with the screen at the same location for a long period of time.

This is equivalent to (and is emitted immediately before) secondaryLongPress. The only difference between the two is that this gesture contains details of the position at which the pointer initially contacted the screen, whereas secondaryLongPress does not.

A gesture of this type has details of LongPressStartDetails.

secondaryLongPressUp → const GestureType

A pointer that has triggered a long-press with a secondary button has stopped contacting the screen.

This is equivalent to (and is emitted immediately after) secondaryLongPressEnd. The only difference between the two is that this gesture does not contain details of the state of the pointer when it stopped contacting the screen.

A gesture of this type has no details.

secondaryTap → const GestureType

A tap with a secondary button has occurred.

This triggers when the tap gesture wins. If the tap gesture did not win, secondaryTapCancel is emitted instead.

A gesture of this type has no details.

secondaryTapCancel → const GestureType

The pointer that previously triggered secondaryTapDown will not end up causing a tap.

This is emitted after secondaryTapDown, and instead of secondaryTapUp, if the tap gesture did not win.

A gesture of this type has no details.

secondaryTapDown → const GestureType

A pointer that might cause a tap with a secondary button has contacted the screen at a particular location.

This is emitted after a short timeout, even if the winning gesture has not yet been selected. If the tap gesture wins, secondaryTapUp will be emitted, otherwise secondaryTapCancel will be emitted.

A gesture of this type has details of TapDownDetails.

secondaryTapUp → const GestureType

A pointer that will trigger a tap with a secondary button has stopped contacting the screen at a particular location.

This triggers in the case of the tap gesture winning. If the tap gesture did not win, secondaryTapCancel is emitted instead.

A gesture of this type has no details.

tertiaryLongPress → const GestureType

Called when a long press gesture with a tertiary button has been recognized.

Triggered when a pointer has remained in contact with the screen at the same location for a long period of time.

This is equivalent to (and is emitted immediately after) tertiaryLongPressStart. The only difference between the two is that this gesture does not contain details of the position at which the pointer initially contacted the screen.

A gesture of this type has no details.

tertiaryLongPressCancel → const GestureType

A pointer that previously triggered tertiaryLongPressDown will not end up causing a long-press.

This triggers once the gesture loses if tertiaryLongPressDown has previously been triggered.

If the user completed the long-press, and the gesture won, then tertiaryLongPressStart and tertiaryLongPress are emitted instead.

A gesture of this type has no details.

tertiaryLongPressDown → const GestureType

The pointer has contacted the screen with a tertiary button, which might be the start of a long-press.

This triggers after the pointer down gesture.

If the user completes the long-press, and this gesture wins, tertiaryLongPressStart will be emitted after this gesture. Otherwise, tertiaryLongPressCancel will be emitted after this gesture.

A gesture of this type has details of LongPressDownDetails.

tertiaryLongPressEnd → const GestureType

A pointer that has triggered a long-press with a secondary button has stopped contacting the screen.

This is equivalent to (and is emitted immediately before) secondaryLongPressUp. The only difference between the two is that this gesture contains details of the state of the pointer when it stopped contacting the screen, whereas secondaryLongPressUp does not.

A gesture of this type has details of LongPressDownDetails.

tertiaryLongPressMoveUpdate → const GestureType

A pointer has been drag-moved after a long press with a secondary button.

A gesture of this type has details of LongPressMoveUpdateDetails.

tertiaryLongPressStart → const GestureType

Called when a long press gesture with a secondary button has been recognized.

Triggered when a pointer has remained in contact with the screen at the same location for a long period of time.

This is equivalent to (and is emitted immediately before) secondaryLongPress. The only difference between the two is that this gesture contains details of the position at which the pointer initially contacted the screen, whereas secondaryLongPress does not.

A gesture of this type has details of LongPressStartDetails.

tertiaryLongPressUp → const GestureType

A pointer that has triggered a long-press with a secondary button has stopped contacting the screen.

This is equivalent to (and is emitted immediately after) secondaryLongPressEnd. The only difference between the two is that this gesture does not contain details of the state of the pointer when it stopped contacting the screen.

A gesture of this type has no details.

tertiaryTapCancel → const GestureType

The pointer that previously triggered secondaryTapDown will not end up causing a tap.

This is emitted after secondaryTapDown, and instead of secondaryTapUp, if the tap gesture did not win.

A gesture of this type has no details.

tertiaryTapDown → const GestureType

A pointer that might cause a tap with a tertiary button has contacted the screen at a particular location.

This is emitted after a short timeout, even if the winning gesture has not yet been selected. If the tap gesture wins, tertiaryTapUp will be emitted, otherwise tertiaryTapCancel will be emitted.

A gesture of this type has details of TapDownDetails.

tertiaryTapUp → const GestureType

A pointer that will trigger a tap with a tertiary button has stopped contacting the screen at a particular location.

This triggers in the case of the tap gesture winning. If the tap gesture did not win, tertiaryTapCancel is emitted instead.

A gesture of this type has no details.

hover → const GestureType

Emitted when a pointer that has not triggered an tapDown changes position.

This is only fired for pointers which report their location when not down (e.g. mouse pointers, but not most touch pointers).

A gesture of this type has no details.

scroll → const GestureType

The pointer issued a scroll gesture.

Scrolling the scroll wheel on a mouse is an example that would emit a scroll gesture.

A gesture of this type has details of Offset, which is PointerScrollEvent.scrollDelta.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<GestureType>
A constant List of the values in this enum, in order of their declaration.