stopDrag method

void stopDrag()

Implementation

void stopDrag() {
  if (state.isDragging || state.isArmed) {
    _shouldStopDrag = true;
  } else {
    throw StateError(
      "stopDrag method can be used only during "
      "drag or armed indicator state.",
    );
  }
}