determineStuckOffset method

double determineStuckOffset()

Implementation

double determineStuckOffset() {
  final scrollBox = _scrollable?.context.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;
}