addOperators method Null safety

Future<void> addOperators(
  1. List<String> userIds
)

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,
  ));
}