setRetry method

dynamic setRetry(
  1. int retry
)

Set how many times the request should retry if it fails.

Implementation

setRetry(int retry) {
  this.retry = retry;
}