updateTaskProgress method
Validates and reports progress for the latest running execution of id.
Implementation
void updateTaskProgress(String id, double value) {
if (!value.isFinite || value < 0 || value > 1) {
throw RangeError.range(value, 0, 1, 'value');
}
final current = tasks[id];
if (current == null) return;
tasks[id] = current.copyWith(progress: value);
tasksEngine.updateProgress(id, value);
}