DraggableDetails class

Represents the details when a specific pointer event occurred on the Draggable.

This includes the Velocity at which the pointer was moving and Offset when the draggable event occurred, and whether its DragTarget accepted it.

Also, this is the details object for callbacks that use DragEndCallback.

Constructors

DraggableDetails({bool wasAccepted = false, required Velocity velocity, required Offset offset})
Creates details for a DraggableDetails.

Properties

hashCode int
The hash code for this object.
no setterinherited
offset Offset
The global position when the specific pointer event occurred on the draggable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
velocity Velocity
The velocity at which the pointer was moving when the specific pointer event occurred on the draggable.
final
wasAccepted bool
Determines whether the DragTarget accepted this draggable.
final

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