updateProgress method

void updateProgress(
  1. double value
)

Implementation

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