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