dragAnchorStrategy property Null safety
final
A strategy that is used by this draggable to get the anchor offset when it is dragged.
The anchor offset refers to the distance between the users' fingers and the feedback widget when this draggable is dragged.
This property's value is a function that implements DragAnchorStrategy. There are two built-in functions that can be used:
-
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.
Defaults to childDragAnchorStrategy if the deprecated dragAnchor property is set to DragAnchor.child, and pointerDragAnchorStrategy if the dragAnchor is set to DragAnchor.pointer.
Implementation
final DragAnchorStrategy? dragAnchorStrategy;