PageableRetryIf typedef
PageableRetryIf =
bool Function(Object error, StackTrace stackTrace, int attempt)
Determines whether a failed pagination request should be retried.
Receives the error thrown by the failed request, its stackTrace,
and the current attempt number.
Return true to allow another attempt, or false to stop retrying.
Implementation
typedef PageableRetryIf = bool Function(
Object error,
StackTrace stackTrace,
int attempt,
);