setScrollProgressX method

void setScrollProgressX(
  1. double value,
  2. Duration duration,
  3. Curve curve
)

Implementation

void setScrollProgressX(double value, Duration duration, Curve curve) {
  final scrollMax = max(0.0, contentSize.width - viewportSize.width);
  horizontal.moveTo(value * scrollMax, duration: duration, curve: curve);
}