updateProgress method
Reports progress for the latest running execution of logical id.
Implementation
void updateProgress(String id, double progress) {
if (!progress.isFinite || progress < 0 || progress > 1) {
throw RangeError.range(progress, 0, 1, 'progress');
}
final candidates = _activeExecutions.where((item) => item.taskId == id);
if (candidates.isEmpty) return;
_reportProgress(candidates.last, progress);
}