disconnectDevice method

Future<void> disconnectDevice()

断开设备连接

Implementation

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