FileStorageClient constructor

const FileStorageClient(
  1. FilesAPI _files, {
  2. Token? userToken,
  3. String? secret,
})

Initializes a FileStorageClient object

This API endpoint allows the uploading of files to, and deleting files from, a Stream-provided CDN.

Implementation

const FileStorageClient(
  this._files, {
  this.userToken,
  this.secret,
}) : assert(
        userToken != null || secret != null,
        'At least a secret or userToken must be provided',
      );