startBluetoothCentral method

  1. @override
Future<void> startBluetoothCentral()
override

Starts bluetooth subsystem.

Shows an alert requesting access rights for bluetooth.

Implementation

@override
Future<void> startBluetoothCentral() async {
  try {
    await _methodChannel.invokeMethod('startBluetoothCentral');
  } on PlatformException catch (e) {
    throw e.message!;
  }
}