createMetaCounters method

Future<Map<String, int>> createMetaCounters(
  1. Map<String, int> metaCounters
)

Creates meta counters. This can be used to customize the channel.

Implementation

Future<Map<String, int>> createMetaCounters(
    Map<String, int> metaCounters) async {
  sbLog.i(StackTrace.current, 'metaCounters: $metaCounters');
  checkUnsupportedAction();

  if (metaCounters.isEmpty) {
    throw InvalidParameterException();
  }

  return await chat.apiClient.send(
    ChannelMetaCounterCreateRequest(
      chat,
      channelType: channelType,
      channelUrl: channelUrl,
      metaCounter: metaCounters,
    ),
  );
}