PreloadTask<T> constructor
const
PreloadTask<T> ({})
Implementation
const PreloadTask({
this.provider,
this.method,
String? id,
this.dependencies = const [],
this.checkBeforeExecute,
this.checkRetryDelay = const Duration(milliseconds: 300),
this.maxCheckRetries = 10,
TaskConfig? config,
}) : _explicitId = id,
config = config ?? const TaskConfig(),
assert(
provider != null || method != null,
'任务必须提供 provider 或 method 之一',
);