toMultipartFile method
Convert FileField to multipart file.
Implementation
Future<http.MultipartFile> toMultipartFile(final String field) async =>
http.MultipartFile(
field,
stream,
length,
filename: filename,
contentType: contentType,
);