patch function

Future<Response> patch(
  1. String url, {
  2. Map<String, String>? headers,
  3. Object? body,
  4. int? timeOut,
})

Implementation

Future<http.Response> patch(String url, {Map<String, String>? headers, Object? body, int? timeOut}) async {
  return await http.patch(
      Uri.parse(url),
      headers: headers,
      encoding: Encoding.getByName("UTF-8"),
      body: body
  ).timeout(Duration(seconds: timeOut ?? _timeOut));
}