recordScrollPosition method
void
recordScrollPosition()
Implementation
void recordScrollPosition() {
bool hasPixels = _scrollPosition?.hasPixels ?? false;
if (!hasPixels) return;
offset = _scrollPosition?.pixels ?? 0;
}