applyExternalDrag method

void applyExternalDrag(
  1. double dy
)

Apply dy (positive = pulled down) from an external driver. Auto- starts the drag and stops any in-flight snap-back.

Implementation

void applyExternalDrag(double dy) {
  if (!_dragging) {
    _dragging = true;
    if (_drag.isAnimating) _drag.stop();
  }
  _drag.value = _drag.value + dy;
}