setPixelsByDelta method

double setPixelsByDelta(
  1. double delta
)

Adjusts the scroll position by delta, clamped within valid bounds returns the difference applied after clamping.

Implementation

double setPixelsByDelta(double delta) => setPixels(pixels - delta);