dart’ as http;
Read moreHow do I upload a file using multipart in Flutter?
There is a static method in MultipartFile class which will be helpful called, fromPath which returns Future. You can add the file in your request body using request. files. add() method.
Read more