patch method
Sends an HTTP PATCH request with the given headers to the given URL. It checks first to see if there is a client, if there is it uses the client assuming it has authorization information, otherwise it calls the newHeaders method to obtain headers and makes the request
Implementation
@override
Future<http.Response> patch(Uri url,
{Map<String, String>? headers,
Object? body,
Encoding? encoding}) async =>
client == null
? await http.patch(
url,
headers: await newHeaders(headers),
body: body,
encoding: encoding,
)
: await client!.patch(
url,
headers: headers,
body: body,
encoding: encoding,
);