getRequest method

Future getRequest(
  1. BuildContext context,
  2. String url
)

Implementation

Future<dynamic> getRequest(BuildContext context, String url) async {
  return _netUtil.get(url).then((dynamic res) {
    return _decoder.convert(res.toString());
  });
}