determineStuckOffset method
Implementation
double determineStuckOffset() {
final scrollBox = _scrollPosition.context.notificationContext!.findRenderObject();
if (scrollBox?.attached ?? false) {
try {
return localToGlobal(Offset.zero, ancestor: scrollBox).dy;
} catch (e) {
// ignore and fall-through and return 0.0
}
}
return 0.0;
}