put method
Performs a PUT request with a new Client instance and closes it after it has been used.
Implementation
Future<Response> put(
url, {
Map<String, String>? headers,
Map<String, dynamic>? params,
Object? body,
Encoding? encoding,
}) async {
return _withClient((client) => client.put(
url,
headers: headers,
params: params,
body: body,
encoding: encoding,
));
}