RateLimitException.withTime constructor Null safety

RateLimitException.withTime(
  1. String retryAfter
)

Implementation

RateLimitException.withTime(String retryAfter) {
  cause = sprintf('Request got rate limited for %s', [retryAfter]);
  this.retryAfter = Duration(milliseconds: int.parse(retryAfter));
}