UShareFile.bytes constructor

const UShareFile.bytes(
  1. Uint8List bytes, {
  2. required String name,
  3. String? mimeType,
})

A file from bytes. UShareFile.bytes(data, name: "a.pdf")

Implementation

const UShareFile.bytes(Uint8List this.bytes, {required String this.name, this.mimeType}) : path = null;