leaveChannel method Null safety

Future<void> leaveChannel()

Allows a user to leave a channel.

After joining a channel, the user must call this method to end the call before joining another channel. This method returns 0 if the user leaves the channel and releases all resources related to the call. This method call is asynchronous, and the user has not exited the channel when the method call returns. Once the user leaves the channel, the SDK triggers the RtcEngineEventHandler.leaveChannel callback. A successful method call triggers the following callbacks:



Future<void> leaveChannel() {
  return _invokeMethod('leaveChannel');