patch static method
Implementation
static Future patch({
required String url,
required Map<String, dynamic> data,
required Map<String, String> headers,
}) async {
var url2 = Uri.parse(url);
Map<String, String> headerData = headers
..addAll({'content-type': 'application/json'});
http.Response response =
await http.patch(url2, headers: headerData, body: jsonEncode(data));
String data2 = response.body;
var decodeData = jsonDecode(data2);
return {'status': response.statusCode, 'data': decodeData};
}