getConnectivityStatus method

Future<bool> getConnectivityStatus()

Get status of conncetion

Implementation

Future<bool> getConnectivityStatus() async {
  bool isconnected = await InternetConnectionChecker().hasConnection;
  return isconnected;
}