PollOptionUpdateRequest constructor Null safety
Implementation
PollOptionUpdateRequest({
required int pollId,
required int pollOptionId,
required String text,
}) {
url = 'polls/$pollId/options/$pollOptionId';
body = {'text': text};
}
PollOptionUpdateRequest({
required int pollId,
required int pollOptionId,
required String text,
}) {
url = 'polls/$pollId/options/$pollOptionId';
body = {'text': text};
}