updateTaskProgress method

void updateTaskProgress(
  1. String id,
  2. double value
)

Manually update the progress of a specific task.

  • id: The task ID.
  • value: The progress value (0.0 to 1.0).

Implementation

void updateTaskProgress(String id, double value) {
  if (tasks.containsKey(id)) {
    // tasks[id] = LxWaiting<dynamic>(current.lastValue); // Status doesn't change, just progress
    taskProgress[id] = value.clamp(0.0, 1.0);
  }
}