DownloadTask.create constructor
DownloadTask.create({})
Implementation
factory DownloadTask.create({
required int taskId,
required String url,
required String downloadPath,
Map<String, String>? headers,
dynamic data,
}) {
return DownloadTask(
taskId: taskId,
url: url,
downloadPath: downloadPath,
headers: headers ?? <String, String>{},
data: data,
);
}