isCompleted property

bool get isCompleted

Returns true if the task is in the TaskState.completed state. ; otherwise, returns false.

Implementation

bool get isCompleted {
  return _state == TaskState.completed;
}