getRequest method

Future<String> getRequest({
  1. required String path,
})

Implementation

Future<String> getRequest({
  required String path,
}) async {
  final url = Uri.https(_authority, path);
  final response = await super.get(url);
  _checkStatusCode(response.statusCode);
  return response.body;
}