getBluetoothState static method

Future<BleState> getBluetoothState()

To get ble radio state

Implementation

static Future<BleState> getBluetoothState() async {
  try {
    var state = await _channel.invokeMethod("radioState");
    return BleState.parse(state);
  } catch (e) {
    return BleState.Unknown;
  }
}