postRequest method

Future<String> postRequest({
  1. required String path,
  2. required String data,
})

Implementation

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