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