urlRequest method

Future<T> urlRequest(
  1. Uri url
)

Same parsed return as request but from the given url. Can be used if the exact url for the request is provided externally. Should not be used if values are specified.

Implementation

Future<T> urlRequest(Uri url) async {
  String response = await sendRequest(url);
  dynamic json = jsonDecode(response);
  return parseResponse(json);
}