Future userPasswordUpdate() async {
String passwordU = password.text;
String confirmPasswordU = confirmPassword.text;
String oldPasswordU = oldPassword.text;
var url = 'url';
var response = await http.put(url,
headers: {
'Accept': 'application/json'
},
body: {
"password": passwordU,
"confirmPass": confirmPasswordU,
"oldpassword": oldPasswordU,
}
);
I want to post image file to server with this method. But I Don't Know How. Can Anyone Help Me ?