threshold property

  1. @override
double get threshold
override

Implementation

@override
double get threshold => _threshold;
set threshold (double value)

Implementation

set threshold(double value) {
  if (_threshold == value) return;
  _threshold = value;
  _verticalOffset = calculateVerticalOffset();
  if (!isAnimating && !isRefreshing) {
    delegate.snapTo(verticalOffset / _threshold);
  }
  notifyListeners();
}