activeRequestCount property

int get activeRequestCount

Get the count of active (non-cancelled) requests.

Implementation

int get activeRequestCount =>
    _activeCancelTokens.where((t) => !t.isCancelled).length;