updateProgress method Null safety
Implementation
void updateProgress(int progress, int duration) {
this.progress = progress;
this.duration = duration;
notifyListeners();
}
void updateProgress(int progress, int duration) {
this.progress = progress;
this.duration = duration;
notifyListeners();
}