UploadFile.fromFile constructor
const
UploadFile.fromFile({})
Implementation
const UploadFile.fromFile({
required this.fieldName,
required File this.file,
String? filename,
this.contentType = 'application/octet-stream',
}) : bytes = null,
filename = filename ?? '';