Returns the pixel offset for a scroll offset, accounting for the scroll anchor.
Source
double scrollOffsetToPixelOffset(double scrollOffset) {
switch (renderObject.anchor) {
case ViewportAnchor.start:
return -scrollOffset;
case ViewportAnchor.end:
return scrollOffset;
}
assert(renderObject.anchor != null);
return null;
}