clientRoleChanged property Null safety
Occurs when the user role switches in a ChannelProfile.LiveBroadcasting channel. For example, from broadcaster to audience or vice versa.
The SDK triggers this callback when the local user switches the user role by calling the setClientRole method after joining the channel. See RtcChannel.setClientRole.
ClientRoleCallback typedef includes the following parameters: