DragAnchor enum

Where the Draggable should be anchored during a drag.

Constants

child → const DragAnchor

Display the feedback anchored at the position of the original child. If feedback is identical to the child, then this means the feedback will exactly overlap the original child when the drag starts.

const DragAnchor(0)
pointer → const DragAnchor

Display the feedback anchored at the position of the touch that started the drag. If feedback is identical to the child, then this means the top left of the feedback will be under the finger when the drag starts. This will likely not exactly overlap the original child, e.g. if the child is big and the touch was not centered. This mode is useful when the feedback is transformed so as to move the feedback to the left by half its width, and up by half its width plus the height of the finger, since then it appears as if putting the finger down makes the touch feedback appear above the finger. (It feels weird for it to appear offset from the original child if it's anchored to the child and not the finger.)

const DragAnchor(1)
values → const List<DragAnchor>

A constant List of the values in this enum, in order of their declaration.

const List<DragAnchor>

Properties

index int

The integer index of this enum.

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

toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited