FilenClient constructor

FilenClient({
  1. required ConfigService config,
  2. Client? httpClient,
})

Implementation

FilenClient({
  required this.config,
  http.Client? httpClient,
})  : api = FilenApi(client: httpClient),
      crypto = FilenCrypto(),
      cache = FilenCache() {
  auth = FilenAuth(api: api, crypto: crypto);
  drive = FilenDrive(api: api, crypto: crypto, cache: cache);
  uploader =
      FilenUpload(api: api, crypto: crypto, cache: cache, drive: drive);
  downloader =
      FilenDownload(api: api, crypto: crypto, cache: cache, drive: drive);
}