failedCount property

int get failedCount

Number of failed requests (4xx, 5xx, or exception).

Implementation

int get failedCount =>
    _logs.where((l) => l.status == HttpRequestStatus.failed).length;