bluetoothBondStateFromString function
Implementation
BluetoothBondState bluetoothBondStateFromString(String? value) {
return BluetoothBondState.values.firstWhere(
(state) => state.name == value,
orElse: () => BluetoothBondState.unknown,
);
}