isBluetoothEnabled static method

Future<bool> isBluetoothEnabled()

Implementation

static Future<bool> isBluetoothEnabled() async {
  try {
    return await _platform.isBluetoothEnabled();
  } catch (e) {
    if (kDebugMode) print('Error checking Bluetooth state: $e');
    return false;
  }
}