openBluetoothSettings method
Opens System Settings so the user can enable or disable Bluetooth.
Implementation
Future<void> openBluetoothSettings() async {
try {
await _channel.invokeMethod<void>('openBluetoothSettings');
} on PlatformException catch (e) {
throw Exception(e.message ?? 'Could not open Bluetooth settings');
}
}