end method

void end()

Ends the drag operation.

Implementation

void end() {
  _state = _state.copyWith(
    isDragging: false,
    delta: Offset.zero,
  );
  notifyListeners();
}