bluetoothState method

  1. @override
Future<String> bluetoothState()
override

Returns the current state of the bluetooth subsystem

Implementation

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