DownloadClient constructor

DownloadClient({
  1. Client? httpClient,
  2. 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);
}