DragAnchorStrategy typedef Null safety

Offset DragAnchorStrategy(
  1. Draggable<Object> draggable,
  2. BuildContext context,
  3. 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);