PollChangelogsGetRequest constructor Null safety

PollChangelogsGetRequest(
  1. {required PollChangeLogsParams params,
  2. String? token,
  3. int? ts,
  4. int limit = 100}
)

Implementation

PollChangelogsGetRequest({
  required PollChangeLogsParams params,
  String? token,
  int? ts,
  int limit = 100,
}) {
  url =
      "${params.channelType.urlString}/${params.channelUrl}/polls/changelogs";
  queryParams = {
    'token': token,
    'change_ts': ts,
    'limit': limit,
    'show_partial_voter_list': params.showPartialVoterList
  };
  queryParams.removeWhere((key, value) => value == null);
}