FilenUpload constructor
FilenUpload({
- required FilenApi api,
- required FilenCrypto crypto,
- required FilenCache cache,
- required FilenDrive drive,
- MemoryGate? memoryGate,
Implementation
FilenUpload({
required this.api,
required this.crypto,
required this.cache,
required this.drive,
MemoryGate? memoryGate,
}) : memoryGate = memoryGate ??
// Per-chunk byte budget (Step 1): a fixed ceiling on bytes in
// flight, no per-chunk system-memory polling. 64 MB comfortably
// holds the default 4–8 chunks (~2 MB each) without constraining
// the degree, and is modest enough for mobile.
MemoryGate(maxBytes: 64 * 1024 * 1024, safetyMarginBytes: 0);