PollGetRequest constructor Null safety
- {required int pollId,
- required String channelUrl,
- required ChannelType channelType}
Implementation
PollGetRequest({
required int pollId,
required String channelUrl,
required ChannelType channelType,
}) {
url = 'polls/$pollId';
queryParams = {
'channel_url': channelUrl,
'channel_type': channelType.urlString,
};
}