updateTask method

void updateTask(
  1. String newTask
)

Implementation

void updateTask(String newTask) {
  if (newTask != this.task) {
    this._task = newTask;
    this.notifyListeners();
  }
}