hasError property

bool hasError

Returns true if this task execution has finished with an error.

Implementation

bool get hasError => isFinished && _error != null;