toMultipartFile method
Convert FileField to multipart file
Implementation
@override
/// Convert FileField to multipart file
Future<http.MultipartFile> toMultipartFile(final String field) async =>
http.MultipartFile.fromPath(
field,
file.path,
contentType: contentType,
filename: filename,
);