toRetryStrategy method
Implementation
RetryOptions toRetryStrategy() {
return RetryOptions(
exponentialBase: exponentialBase,
retryInterval: Duration(milliseconds: retryInterval),
maxDelay: Duration(milliseconds: maxRetryDelay),
maxTime: Duration(milliseconds: maxRetryTime),
maxRetries: maxRetries,
retryJitter: Duration(milliseconds: retryJitter));
}