overExtent property
double
get
overExtent
Keep the extent of the Scrollable out of bounds.
Implementation
double get overExtent {
// If the direction is different do not change.
if (!_isSupportAxis) {
return 0;
}
// State that doesn't change.
if (_task == null ||
(!_canProcess && !noMoreLocked) ||
(noMoreLocked && infiniteOffset == null)) {
return 0;
}
// State that triggers the task.
if (infiniteOffset != null ||
_mode == IndicatorMode.ready ||
modeLocked ||
noMoreLocked) {
return actualTriggerOffset;
}
// State that triggers the secondary.
if (_mode == IndicatorMode.secondaryArmed && userOffsetNotifier.value) {
return offset;
}
if (_mode == IndicatorMode.secondaryReady ||
_mode == IndicatorMode.secondaryOpen) {
return secondaryDimension;
}
return 0;
}