availableForUser property

bool get availableForUser

Whether the user can do this task now.

True if it is enqueued, notified or canceled.

Implementation

bool get availableForUser =>
    (_state == UserTaskState.enqueued || _state == UserTaskState.canceled || _state == UserTaskState.notified);