PollVotingMode class sealed

The Voting mode for a poll.

Determines how many unique options can be voted by a user in a poll.

  • VotingDisabled means that voting is disabled and the user can't vote.
  • VotingUnique means that the user can vote for only one unique option.
  • VotingLimited means that the user can vote for a limited number of unique options specified by count.
  • VotingAll means 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()
const
factory
PollVotingMode.disabled()
const
factory
PollVotingMode.limited({required int count})
const
factory
PollVotingMode.unique()
const
factory

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