hasBluetooth static method

Future<bool> hasBluetooth()

Implementation

static Future<bool> hasBluetooth() async {
  if (!kIsWeb) {
    final List<ConnectivityResult> connectivityResult = await Connectivity().checkConnectivity();
    return connectivityResult.contains(ConnectivityResult.bluetooth);
  }
  return true;
}