updatePollOption method
Updates optionText
fields of this poll option.
Implementation
Future<Poll> updatePollOption({
required int pollId,
required int pollOptionId,
required String optionText,
}) async {
sbLog.i(StackTrace.current,
'pollId: $pollId, pollOptionId: $pollOptionId, optionText: $optionText');
return await chat.apiClient.send(
PollOptionUpdateRequest(
chat,
pollId: pollId,
pollOptionId: pollOptionId,
text: optionText,
),
);
}