PollAnswer class
This object represents an answer of a user in a non-anonymous poll.
Constructors
-
PollAnswer({required String pollId, required User user, required List<
int> optionIds}) - Basic constructor
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
optionIds
↔ List<
int> -
0-based identifiers of answer options, chosen by the user.
May be empty if the user retracted their vote.
getter/setter pair
- pollId ↔ String
-
Unique poll identifier
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user ↔ User
-
The user, who changed the answer to the poll
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map - Creates a json from the object
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → PollAnswer - Creates a object from a json