hasInternetInternetConnection method

Future<bool> hasInternetInternetConnection()

Implementation

Future<bool> hasInternetInternetConnection() async {
  final bool previousConnection = hasConnection;

  // if (await isConnectedToInternet()) {
  //   hasConnection = true;
  // } else {
  //   hasConnection = false;
  // }

  // The connection status changed send out an update to all listeners
  if (previousConnection != hasConnection) {
    connectionChangeController.add(hasConnection);
  }
  return hasConnection;
}