addOperators method Null safety
Adds operators on this channel with given userIds
.
After this method completes sucessfully, channel event ChannelEventHandler.onChannelOperatorsUpdated will be invoked. Operator only
Implementation
Future<void> addOperators(List<String> userIds) async {
if (userIds.isEmpty) {
throw InvalidParameterError();
}
await _sdk.api.send(ChannelOperatorsAddRequest(
channelType: channelType,
channelUrl: channelUrl,
userIds: userIds,
));
}