isBluetoothEnabled method

Future<bool> isBluetoothEnabled()

Check if Bluetooth is enabled

Implementation

Future<bool> isBluetoothEnabled() async {
  try {
    return await _channel.invokeMethod('isBluetoothEnabled');
  } catch (e) {
    throw BluetoothException('Failed to check Bluetooth status: $e');
  }
}