PollVotingMode class sealed
The Voting mode for a poll.
Determines how many unique options can be voted by a user in a poll.
VotingDisabledmeans that voting is disabled and the user can't vote.VotingUniquemeans that the user can vote for only one unique option.VotingLimitedmeans that the user can vote for a limited number of unique options specified bycount.VotingAllmeans that the user can vote for all the available unique options.
Note: VotingLimited with count equal to the number of available options
in a poll is equivalent to VotingAll.
- Annotations
-
- @freezed
Constructors
- PollVotingMode.all()
-
constfactory
- PollVotingMode.disabled()
-
constfactory
- PollVotingMode.limited({required int count})
-
constfactory
- PollVotingMode.unique()
-
constfactory
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited