currentRequestCount property
int
get
currentRequestCount
Gets the number of requests made in the current window
Implementation
int get currentRequestCount {
final now = DateTime.now();
_requestTimestamps.removeWhere(
(timestamp) => now.difference(timestamp) > _windowDuration,
);
return _requestTimestamps.length;
}