retry method
Alias to asyncRetry.
Implementation
FutureOr<R?> retry(
A a,
B b,
C c,
D d,
E e,
F f,
G g,
H h,
I i, {
R? defaultValue,
bool throwOnRetryExhaustion = false,
int maxRetries = 3,
Duration? retryDelay,
Duration? Function(int retry)? computeDelay,
bool? Function(Object error, StackTrace stackTrace, int retries)? onError,
}) => asyncRetry<R>(
() => this(a, b, c, d, e, f, g, h, i),
defaultValue: defaultValue,
throwOnRetryExhaustion: throwOnRetryExhaustion,
maxRetries: maxRetries,
retryDelay: retryDelay,
computeDelay: computeDelay,
onError: onError,
);