getAdapterState method
实现 FlutterBluetoothPluginPlatform.getAdapterState。
参数、默认值、平台差异和推荐值见平台接口文档。
Implementation
@override
Future<BluetoothAdapterState> getAdapterState() async {
final state = await methodChannel.invokeMethod<String>('getAdapterState');
return bluetoothAdapterStateFromString(state);
}