addFormFile function

Future<MultipartFile> addFormFile(
  1. String filePath, {
  2. String? filename,
})

Implementation

Future<MultipartFile> addFormFile(String filePath, {String? filename}) async {
  return await MultipartFile.fromFile(filePath, filename: filename);
}