initialPixelsFromTop function
Where a page or sheet list opens: initialScrollOffset down from the top
the reader sees, which a reversed list reaches at its maximum offset. One
controller serves lists that read either way, as a feed and its grouped
form do, so only the list knows which offset is its top.
Implementation
double initialPixelsFromTop(ScrollContext context, double initialScrollOffset) {
if (context.axisDirection != AxisDirection.up) {
return initialScrollOffset;
}
assert(initialScrollOffset == 0, 'A reversed list opens at its top.');
return double.maxFinite;
}