updateProgress method
Implementation
void updateProgress(double value) {
final newValue = value.clamp(0.0, 1.0);
if (_progress == newValue) return;
_progress = newValue;
notify();
}
void updateProgress(double value) {
final newValue = value.clamp(0.0, 1.0);
if (_progress == newValue) return;
_progress = newValue;
notify();
}