SDNFile constructor

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

Implementation

SDNFile({required this.bytes, required String name, String? mimeType})
    : mimeType = mimeType ??
          lookupMimeType(name, headerBytes: bytes) ??
          'application/octet-stream',
      name = name.split('/').last;