ChannelMetaCounterGetRequest constructor Null safety

ChannelMetaCounterGetRequest(
  1. {required ChannelType channelType,
  2. required String channelUrl,
  3. List<String> keys = const []}
)

Implementation

ChannelMetaCounterGetRequest({
  required ChannelType channelType,
  required String channelUrl,
  List<String> keys = const [],
}) : super() {
  url = '${channelType.urlString}/$channelUrl/metacounter';
  queryParams = {'include_ts': true};
  if (keys.isNotEmpty) {
    queryParams['keys'] = keys;
  }
}