PreloadConfig constructor
const
PreloadConfig({
- int maxConcurrentTasks = 3,
- Duration defaultTimeout = const Duration(seconds: 30),
- int maxRetries = 2,
- Duration retryBaseDelay = const Duration(milliseconds: 500),
- bool enableLogging = true,
- void onError(
- Object error,
- StackTrace? stackTrace
- Duration defaultCheckRetryDelay = const Duration(milliseconds: 300),
- int defaultMaxCheckRetries = 10,
- Future<
bool> globalCheck()?, - Duration? globalCheckRetryDelay,
- 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,
});