disconnectDevice method
断开设备连接
Implementation
Future<void> disconnectDevice() async {
try {
await _channel.invokeMethod('disconnectDevice');
} on PlatformException catch (e) {
throw Exception('断开连接失败: ${e.message}');
}
}
断开设备连接
Future<void> disconnectDevice() async {
try {
await _channel.invokeMethod('disconnectDevice');
} on PlatformException catch (e) {
throw Exception('断开连接失败: ${e.message}');
}
}