setRetryIf method

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

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

Implementation

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