isConnected static method

Future<bool> isConnected()

Implementation

static Future<bool> isConnected() async {
  //check if web
  if( DeviceTools.isPlatformWeb() ) {
   // Log.i("isConnected() - is web - stop");
    return true;
  }

  //check in mobile
  bool result = await InternetConnectionChecker().hasConnection;
  return result;
}