DragAnchor enum
Where the MyDraggable should be anchored during a drag.
Values
- 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.
- 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.)
Properties
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
Constants
-
values
→ const List<
DragAnchor> - A constant List of the values in this enum, in order of their declaration.