isBluetoothEnabled method

Future<bool> isBluetoothEnabled()
override

Implementation

Future<bool> isBluetoothEnabled() async {
  try {
    return await methodChannel.invokeMethod('isBluetoothEnabled');
  } on PlatformException catch (e) {
    print("Failed to check Bluetooth status: '${e.message}'.");
    return false;
  }
}