updateBluetoothState static method
To turn on/off ble radio
Implementation
static Future<BleState> updateBluetoothState(bool turnOn) async {
try {
var state = await _channel.invokeMethod("changeRadioState", args: {
"turnOn": turnOn,
});
return BleState.parse(state);
} catch (e) {
return BleState.Unknown;
}
}