postRequestAuthOrder static method

Future postRequestAuthOrder(
  1. dynamic url,
  2. dynamic body
)

Implementation

static Future<dynamic> postRequestAuthOrder(url, body) async {

   var networkStatus = await connectionChecker();
  if (!networkStatus) {
    throw ("No internet connection");
  }

  var response = await http.post(Uri.parse(url),
      body: jsonEncode(body),
      headers: await ApiHelpers().getNormalHeaderWithToken());
  return response;
}