RetrySimple constructor

RetrySimple({
  1. required int maxAttempts,
})

Creates a simple retry policy

maxAttempts is the total number of attempts (initial + retries). For example, maxAttempts: 3 means 1 initial attempt + 2 retries.

Implementation

RetrySimple({required int maxAttempts})
    : maxAttempts = _validateMaxAttempts(maxAttempts);