setAdapterEnabled method
Requests the radio be powered on/off. Throws BluetoothUnsupportedException where the OS forbids programmatic control.
Implementation
@override
Future<void> setAdapterEnabled(bool enabled) async {
emitAdapterState(
enabled ? BluetoothAdapterState.on : BluetoothAdapterState.off,
);
}