onLeaveChannel property
Callback when leaving a channel.
You can use this callback to obtain information such as the total call duration and the amount of data sent and received by the SDK.
connectionConnection information. See RtcConnection.statsCall statistics. See RtcStats.
Implementation
final void Function(RtcConnection connection, RtcStats stats)? onLeaveChannel;