PollOptionAddRequest constructor Null safety
- {required int pollId,
- required String text,
- required String channelUrl,
- required ChannelType channelType}
Implementation
PollOptionAddRequest({
required int pollId,
required String text,
required String channelUrl,
required ChannelType channelType,
}) : assert(text.length <= 2000) {
url = 'polls/$pollId/options';
body = {
'text': text,
'channel_url': channelUrl,
'channel_type': channelType.urlString,
};
}