isBluetoothAvailable property

Future<bool> get isBluetoothAvailable

Checks if Bluetooth is available on the device.

Implementation

Future<bool> get isBluetoothAvailable async {
  return (await FlutterBluePlus.adapterState.first) ==
      BluetoothAdapterState.on;
}