removeVotes static method

Future removeVotes(
  1. Set<String> pollOptionIds,
  2. String activityId
)

Remove votes from an activity with poll.

pollOptionId Poll option id to vote for. activityId To add the vote to.

Implementation

static Future removeVotes(Set<String> pollOptionIds, String activityId) {
  Map<String, dynamic> addVotesBody = {
    'pollOptionIds': pollOptionIds.toList(),
    'activityId': activityId
  };
  return NativeBridge.async(
      'Communities.removeVotes', jsonEncode(addVotesBody));
}