destroyAgent method

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

销毁AIUI代理

Implementation

@override
Future<void> destroyAgent() async {
  if (_listener != null) {
    _listener = null;
  }
  await methodChannel.invokeMethod(AiuiConstant.destroyAgent);
}