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
- offset → Offset
-
The global position when the specific pointer event occurred on
the draggable.
final
- 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
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited