TusClient constructor

TusClient(
  1. Uri url,
  2. XFile file, {
  3. TusStore? store,
  4. Map<String, String>? headers,
  5. Map<String, String>? metadata = const {},
  6. int maxChunkSize = 512 * 1024,
})

Implementation

TusClient(
  this.url,
  this.file, {
  this.store,
  this.headers,
  this.metadata = const {},
  this.maxChunkSize = 512 * 1024,
}) {
  _fingerprint = generateFingerprint() ?? "";
  _uploadMetadata = generateMetadata();
}