PreloadConfig constructor

const PreloadConfig({
  1. int maxConcurrentTasks = 3,
  2. Duration defaultTimeout = const Duration(seconds: 30),
  3. int maxRetries = 2,
  4. Duration retryBaseDelay = const Duration(milliseconds: 500),
  5. bool enableLogging = true,
  6. void onError(
    1. Object error,
    2. StackTrace? stackTrace
    )?,
  7. Duration defaultCheckRetryDelay = const Duration(milliseconds: 300),
  8. int defaultMaxCheckRetries = 10,
  9. Future<bool> globalCheck()?,
  10. Duration? globalCheckRetryDelay,
  11. int? globalCheckMaxRetries,
})

Implementation

const PreloadConfig({
  this.maxConcurrentTasks = 3,
  this.defaultTimeout = const Duration(seconds: 30),
  this.maxRetries = 2,
  this.retryBaseDelay = const Duration(milliseconds: 500),
  this.enableLogging = true,
  this.onError,
  this.defaultCheckRetryDelay = const Duration(milliseconds: 300),
  this.defaultMaxCheckRetries = 10,
  this.globalCheck,
  this.globalCheckRetryDelay,
  this.globalCheckMaxRetries,
});