PollChangelogsGetRequest constructor Null safety
- {required PollChangeLogsParams params,
- String? token,
- int? ts,
- 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);
}