fetchUrlData static method

Future<String> fetchUrlData(
  1. String url
)

Implementation

static Future<String> fetchUrlData(String url) async {
  final remote = Uri.parse(url);
  var response = await http.get(remote);
  return response.body;
}