calculateOffsetWithPixels method

  1. @override
double calculateOffsetWithPixels(
  1. ScrollMetrics position,
  2. double pixels
)
override

Implementation

@override
double calculateOffsetWithPixels(ScrollMetrics position, double pixels) =>
    math.max(position.minScrollExtent - pixels, 0.0);