DragEndDetails class
Details object for callbacks that use GestureDragEndCallback.
See also:
- DragGestureRecognizer.onEnd, which uses GestureDragEndCallback.
- DragDownDetails, the details for GestureDragDownCallback.
- DragStartDetails, the details for GestureDragStartCallback.
- DragUpdateDetails, the details for GestureDragUpdateCallback.
Constructors
- DragEndDetails({Velocity velocity = Velocity.zero, double? primaryVelocity, Offset globalPosition = Offset.zero, Offset? localPosition})
- Creates details for a GestureDragEndCallback.
Properties
- globalPosition → Offset
-
The global position the pointer is located at when the drag
gesture has been completed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localPosition → Offset
-
The local position in the coordinate system of the event receiver when
the drag gesture has been completed.
final
- primaryVelocity → double?
-
The velocity the pointer was moving along the primary axis when it stopped
contacting the screen, in logical pixels per second.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- velocity → Velocity
-
The velocity the pointer was moving when it stopped contacting the screen.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited