patch method

Future<Response> patch({
  1. required String url,
  2. required dynamic payload,
  3. Map<String, String>? headers,
})

Implementation

Future<http.Response> patch ({ required String url, required dynamic payload, Map<String, String>? headers }) async {
  final response = await http.patch(Uri.parse("$baseUrl$url"), body: jsonEncode(payload), headers: _getHeaders(headers));
  return responseWrapper(response);
}