DragAnchorStrategy typedef

DragAnchorStrategy = Offset Function(Draggable<Object> draggable, BuildContext context, Offset position)

Signature for the strategy that determines the drag start point of a Draggable.

Used by Draggable.dragAnchorStrategy.

There are two built-in strategies:

Implementation

typedef DragAnchorStrategy = Offset Function(Draggable<Object> draggable, BuildContext context, Offset position);