RetryScheduler constructor

RetryScheduler({
  1. required String token,
  2. required dynamic maxBatchSize,
  3. required dynamic maxDelayInMs,
  4. required dynamic maxCacheSizeBytes,
  5. required dynamic clearAfterInMs,
  6. int thresholdInMs = 2000,
  7. int maxRetryCount = 1,
})

Implementation

factory RetryScheduler({
  required String token,
  required maxBatchSize,
  required maxDelayInMs,
  required maxCacheSizeBytes,
  required clearAfterInMs,
  int thresholdInMs = 2000,
  int maxRetryCount = 1,
}) {
  _instance._init(
    token,
    maxBatchSize,
    maxDelayInMs,
    thresholdInMs,
    maxRetryCount,
    maxCacheSizeBytes,
    clearAfterInMs,
  );
  return _instance;
}