updatePollOption method

Future<Poll> updatePollOption(
  1. {required int pollId,
  2. required int pollOptionId,
  3. required String optionText}
)

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,
    ),
  );
}