PointerSpace<TKey> class

Coordinate conversion + liveness for one drag session. See library docs for the nullable-read contract.

Constructors

PointerSpace({required ScrollableState scrollable, required ReorderRenderPort<TKey> renderPort})

Properties

hashCode → int
The hash code for this object.
no setterinherited
isLive → bool
Whether the scrollable is still mounted. Prefer consuming the nullability of sample/position over branching on this directly.
no setter
position → ScrollPosition?
The scroll position, or null when the scrollable is unmounted.
no setter
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
sample(Offset globalPointer) → PointerSample?
Converts globalPointer into every coordinate the drag pipeline needs, or null when the scrollable is unmounted (or its viewport box is detached mid-teardown).
toString() → String
A string representation of this object.
inherited

Operators

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