Returns a two-dimensional representation of the scroll offset, accounting for the scroll direction and scroll anchor.
Source
Offset scrollOffsetToPixelDelta(double scrollOffset) { switch (renderObject.mainAxis) { case Axis.horizontal: return new Offset(scrollOffsetToPixelOffset(scrollOffset), 0.0); case Axis.vertical: return new Offset(0.0, scrollOffsetToPixelOffset(scrollOffset)); } assert(renderObject.mainAxis != null); return null; }