RateLimitException.withTime constructor

RateLimitException.withTime(
  1. String retryAfter
)

Implementation

RateLimitException.withTime(String retryAfter) {
  cause = 'Request got rate limited for $retryAfter';
  this.retryAfter = Duration(milliseconds: int.parse(retryAfter));
}