DragAnchorStrategy typedef Null safety
Signature for the strategy that determines the drag start point of a Draggable.
Used by Draggable.dragAnchorStrategy.
There are two built-in strategies:
-
childDragAnchorStrategy, which displays the feedback anchored at the position of the original child.
-
pointerDragAnchorStrategy, which displays the feedback anchored at the position of the touch that started the drag.
Implementation
typedef DragAnchorStrategy = Offset Function(Draggable<Object> draggable, BuildContext context, Offset position);