onDragUpdate method

void onDragUpdate(
  1. Offset position,
  2. Offset delta
)

Called when the drag position updates.

Implementation

void onDragUpdate(Offset position, Offset delta) {
  dragState = dragState.copyWith(
    currentPosition: position,
    delta: delta,
  );
  setState(() {});
}