getURLAsString function
Implementation
FutureOr<String?> getURLAsString(String url,
{HttpClient? client, String? method}) {
var response = getURL(url, client: client, method: method);
return response.then((response) => response.bodyAsString,
onError: (e) => null);
}