@action void finishTask(double progress, {String? newTask}) { this.update(progress); if (newTask != null) { this.task = newTask; } }