FileDownloader constructor
FileDownloader({
- required String url,
- String? filePath,
- bool? forceRedownload,
- bool? notAcceptRanges,
- Map<
String, dynamic> headers = const {}, - int? fileSizeAlreadyKnown,
- void onStartReal()?,
- void onFailed()?,
- int progressCallbackIntervalMills = 300,
- int retryTimes = 1,
- Map<
String, Object> tags = const {}, - required void onSuccess(),
- void onProgress()?,
- void onCancel()?,
Implementation
FileDownloader({
required this.url,
this.filePath,
this.forceRedownload,
this.notAcceptRanges,
this.headers = const {},
this.fileSizeAlreadyKnown,
this.onStartReal,
this.onFailed,
this.progressCallbackIntervalMills = 300,
this.retryTimes = 1,
this.tags = const {},
required this.onSuccess,
this.onProgress,
this.onCancel,
});