removeOperators method Null safety

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

Removes operators on this channel with given userIds.

After this method completes sucessfully, channel event ChannelEventHandler.onChannelOperatorsUpdated will be invoked. Operator only

Implementation

Future<void> removeOperators(List<String> userIds) async {
  if (userIds.isEmpty) {
    throw InvalidParameterError();
  }

  await _sdk.api.send(ChannelOperatorsRemoveRequest(
    channelType: channelType,
    channelUrl: channelUrl,
    userIds: userIds,
  ));
}