modifyOffsetIfOverScrolled method

void modifyOffsetIfOverScrolled()

modify the offset if over scrolled

Implementation

void modifyOffsetIfOverScrolled() {
  if ((!hasLeadingAction && currentOffset.dx > 0.0) ||
      (!hasTrailingAction && currentOffset.dx < 0.0)) {
    currentOffset = Offset.zero;
  }
}