QueryRetry.when constructor

const QueryRetry.when(
  1. bool test(
    1. int failureCount,
    2. Object error
    )
)

Uses test to decide whether each failure should retry.

Implementation

const QueryRetry.when(bool Function(int failureCount, Object error) test)
  : _test = test;