postForString static method
Sends a HTTP POST request to the given url
with the given body
, queryParameters
and headers
.
Returns the response as a string.
Implementation
static Future<String> postForString(String url,
{String? body,
Map<String, String>? queryParameters,
Map<String, String>? headers}) async {
return await _post(url,
body: body,
queryParameters: queryParameters,
headers: headers,
returnType: HttpRequestReturnType.STRING) as String;
}