MultipartFile constructor
MultipartFile(})
Implementation
MultipartFile(
dynamic data, {
required this.filename,
this.contentType = 'application/octet-stream',
}) : _bytes = decoder.fileToBytes(data) {
_length = _bytes.length;
_stream = BodyBytesStream.fromBytes(_bytes);
}