getMetaCounters method Null safety

Future<Map<String, int>> getMetaCounters(
  1. List<String> keys
)

Retrieves meta counters from this channel with keys.

Implementation

Future<Map<String, int>> getMetaCounters(List<String> keys) async {
  if (keys.isEmpty) {
    throw InvalidParameterError();
  }

  return _sdk.api.send(
    ChannelMetaCounterGetRequest(
      channelType: channelType,
      channelUrl: channelUrl,
      keys: keys,
    ),
  );
}