scrollOffsetX property

  1. @override
double get scrollOffsetX
override

The current horizontal scroll offset.

Indicates how much the content is scrolled horizontally.

Implementation

@override
double get scrollOffsetX => horizontalOverflow.reverse
    ? contentSize.width - viewportSize.width - horizontal.pixels
    : horizontal.pixels;