hasNetworkConnection static method

Future<bool> hasNetworkConnection()

Implementation

static Future<bool> hasNetworkConnection() async {
  if (!kIsWeb) {
    return InternetConnectionChecker().hasConnection;
  }
  return true;
}