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