DownloadClient constructor

DownloadClient({
  1. Client? httpClient,
  2. Directory? directoryDownload,
})

Implementation

DownloadClient({
  Client? httpClient,
  Directory? directoryDownload,
})  : httpClient = httpClient ?? Client(),
      directoryDownload = directoryDownload ??
          Directory(path.join(Directory.current.path, "temp")) {
  checkDir(directoryDownload: this.directoryDownload);
}