end method

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

结束群通话(发起人、群主、管理员);一对一等同挂断。

Implementation

@override
Future<void> end() async {
  final result = await _module.signalWithRetry('rtc.end', '$_path/end', {'call_id': callId});
  final call = asMap(result['call']);
  if (call != null) applyCall(call);
  await teardown(false);
}