getRequestWithAuth static method

Future getRequestWithAuth(
  1. dynamic url
)

Implementation

static Future<dynamic> getRequestWithAuth(url) async {

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

  var response = await http.get(Uri.parse(url),
      headers: await ApiHelpers().getNormalHeader());
  return response;
}