UploadFile.fromBytes constructor

const UploadFile.fromBytes({
  1. required String fieldName,
  2. required Uint8List bytes,
  3. required String filename,
  4. String contentType = 'application/octet-stream',
})

Implementation

const UploadFile.fromBytes({
  required this.fieldName,
  required Uint8List this.bytes,
  required this.filename,
  this.contentType = 'application/octet-stream',
}) : file = null;