isBluetoothEnabled method

  1. @override
Future<bool> isBluetoothEnabled()
override

Check if Bluetooth is enabled

Implementation

@override
Future<bool> isBluetoothEnabled() async {
  try {
    final result = await _methodChannel.invokeMethod<bool>('isBluetoothEnabled');
    return result ?? false;
  } catch (e) {
    throw BluetoothException('Failed to check Bluetooth status: $e');
  }
}