leave method

Future<void> leave()

Implementation

Future<void> leave() async {
  final res = await _callNative("leave", null);
  if (res["errorCode"] != 0)
    throw AgoraRtmChannelException(
        "leave failed errorCode:${res['errorCode']}", res['errorCode']);
}