pullProgress property

double get pullProgress

相对于有效阈值的进度。

Implementation

double get pullProgress {
  final threshold = math.max(_visualThresholdOffset, _triggerProgressOffset);
  return threshold > 0 ? (_dragOffset / threshold).clamp(0.0, 1.0) : 0;
}