isRateLimited method

bool isRateLimited()

Implementation

bool isRateLimited() {
  if (lastFailedTime == null) return false;
  return DateTime.now().difference(lastFailedTime!) < rateLimitTimeout;
}