setRetryIf method

dynamic setRetryIf(
  1. bool retryIf(
    1. DioException dioException
    )
)
inherited

Set if the request should shouldRetry if the retryIf returns true.

Implementation

setRetryIf(bool Function(DioException dioException) retryIf) {
  this.retryIf = retryIf;
}