computePaintOrigin method
Implementation
double? computePaintOrigin(double? layoutExtent, bool reverse, bool follow) {
if (follow) {
if (reverse) {
return layoutExtent;
}
return 0.0;
} else {
if (reverse) {
return math.max(
constraints.viewportMainAxisExtent -
constraints.precedingScrollExtent,
0.0) +
layoutExtent!;
} else {
return math.max(
constraints.viewportMainAxisExtent -
constraints.precedingScrollExtent,
0.0);
}
}
}