UploadFile constructor
UploadFile({})
Implementation
UploadFile({
this.file,
this.filePath,
this.fileBytes,
required this.fieldName,
this.fileName,
this.contentType,
}) : assert(
file != null || filePath != null || fileBytes != null,
'必须提供 file、filePath 或 fileBytes 之一',
);