remainingDelay property

Duration get remainingDelay

Calculates the effective delay before transient progress should appear.

Implementation

Duration get remainingDelay {
  if (_hasShownProgress) return Duration.zero;
  final remaining = _defaultGracePeriod - _stopwatch.elapsed;
  return remaining.isNegative ? Duration.zero : remaining;
}