getMultipartFile method
- [int? index]
creates instance of MultipartFile from attachment
Implementation
http.MultipartFile getMultipartFile([int? index]) =>
http.MultipartFile(index != null ? "file[$index]" : _name, Stream.value(_bytes), _bytes.length, filename: _name);