removeAllOperators method

Future<void> removeAllOperators()

Remove all operators from the channel. See https://docs.sendbird.com/platform/user_type#3_operator for the explanations on the operators.

Implementation

Future<void> removeAllOperators() async {
  sbLog.i(StackTrace.current);
  checkUnsupportedAction();

  await chat.apiClient.send(ChannelOperatorsRemoveRequest(
    chat,
    channelType: channelType,
    channelUrl: channelUrl,
    removeAll: true,
  ));
}