DownloadClient constructor
DownloadClient({
- Client? httpClient,
- Directory? directoryDownload,
Implementation
DownloadClient({
Client? httpClient,
Directory? directoryDownload,
}) {
if (httpClient != null) {
http_client = httpClient;
}
directoryDownload ??= Directory(
path.join(
Directory.current.path,
"temp",
),
);
directory_download = directoryDownload;
checkDir(directoryDownload: directory_download);
}