MultipartFileRecreatable.fromBytes constructor
MultipartFileRecreatable.fromBytes(})
Creates a MultipartFileRecreatable object with bytes
.
Implementation
factory MultipartFileRecreatable.fromBytes(
List<int> bytes, {
String? filename,
MediaType? contentType,
Map<String, List<String>>? headers,
}) {
return MultipartFileRecreatable(
Stream.fromIterable(<List<int>>[bytes]),
bytes.length,
filename: filename,
contentType: contentType,
headers: headers,
);
}