MultiDragPointerState class Null safety

Per-pointer state for a MultiDragGestureRecognizer.

A MultiDragGestureRecognizer tracks each pointer separately. The state for each pointer is a subclass of MultiDragPointerState.

Constructors

MultiDragPointerState(Offset initialPosition, PointerDeviceKind kind, DeviceGestureSettings? gestureSettings)
Creates per-pointer state for a MultiDragGestureRecognizer.

Properties

gestureSettings DeviceGestureSettings?
Device specific gesture configuration that should be preferred over framework constants.
final
hashCode int
The hash code for this object.
read-onlyinherited
initialPosition Offset
The global coordinates of the pointer when the pointer contacted the screen.
final
kind PointerDeviceKind
The kind of pointer performing the multi-drag gesture.
final
pendingDelta Offset?
The offset of the pointer from the last position that was reported to the client.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

accepted(GestureMultiDragStartCallback starter) → void
Called when the gesture was accepted.
protected">@protected
checkForResolutionAfterMove() → void
Override this to call resolve() if the drag should be accepted or rejected. This is called when a pointer movement is received, but only if the gesture has not yet been resolved.
protected">@protected
dispose() → void
Releases any resources used by the object.
mustCallSuper">@mustCallSuperprotected">@protected
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
rejected() → void
Called when the gesture was rejected.
mustCallSuper">@mustCallSuperprotected">@protected
resolve(GestureDisposition disposition) → void
Resolve this pointer's entry in the GestureArenaManager with the given disposition.
mustCallSuper">@mustCallSuperprotected">@protected
toString() String
A string representation of this object.
inherited

Operators

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