setClientRole method Null safety

Future<int> setClientRole(
  1. int role
)

Set a role. Users can set a role to audience or host before or after joining a channel by calling setClientRole. role user role NERtcClientRole

Implementation

Future<int> setClientRole(int role) async {
  IntValue reply = await _api.setClientRole(IntValue()..value = role);
  return reply.value ?? -1;
}