checkBluetoothEnabled method

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

Checks if Bluetooth is enabled on the device.

Returns a Future completing with true if enabled, false otherwise.

Implementation

@override
Future<bool> checkBluetoothEnabled() async {
  final bool? enabled =
      await methodChannel.invokeMethod('checkBluetoothEnabled');
  return enabled ?? false;
}