leaveChannel method
Leaves the current channel.
A successful leaveChannel method call triggers the following callbacks:
- The local client: RtcChannelEventHandler.leaveChannel.
- The remote client: RtcChannelEventHandler.userOffline, if the user leaving the channel is in a Communication channel, or is a broadcaster in a ChannelProfile.LiveBroadcasting channel .
Implementation
@override
Future<void> leaveChannel() {
return _invokeMethod('leaveChannel');
}