PollRepository class

Poll Repository

Constructors

PollRepository()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closePoll({required String pollId}) Future<AmityPoll>
Vote for the poll id
createPoll({required String question}) PollCreateQueryBuilder
Create Poll
deletePoll({required String pollId}) Future<bool>
Delete Poll
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
vote({required String pollId, required List<String> answerIds}) Future
Vote for the poll id

Operators

operator ==(Object other) bool
The equality operator.
inherited