playedProgress property

double get playedProgress

Fraction 0, 1 of playback progress. Safe when duration is zero.

Implementation

double get playedProgress {
  if (duration <= 0) return 0.0;
  return (currentTime / duration).clamp(0.0, 1.0);
}