checkInternetConnectivity static method

Future<bool> checkInternetConnectivity()

Implementation

static Future<bool> checkInternetConnectivity() async{
  bool result = true;
  if(!kIsWeb){
    result = await InternetConnectionChecker().hasConnection;
  }
  return result;
}