Contest class

Information about a contest that appears on a voter's ballot.

Constructors

Contest({String? ballotPlacement, String? ballotTitle, List<Candidate>? candidates, ElectoralDistrict? district, String? electorateSpecifications, List<String>? level, String? numberElected, String? numberVotingFor, String? office, List<String>? primaryParties, List<String>? referendumBallotResponses, String? referendumBrief, String? referendumConStatement, String? referendumEffectOfAbstain, String? referendumPassageThreshold, String? referendumProStatement, String? referendumSubtitle, String? referendumText, String? referendumTitle, String? referendumUrl, List<String>? roles, List<Source>? sources, String? special, String? type})
Contest.fromJson(Map json_)

Properties

ballotPlacement String?
A number specifying the position of this contest on the voter's ballot.
getter/setter pair
ballotTitle String?
The official title on the ballot for this contest, only where available.
getter/setter pair
candidates List<Candidate>?
The candidate choices for this contest.
getter/setter pair
district ElectoralDistrict?
Information about the electoral district that this contest is in.
getter/setter pair
electorateSpecifications String?
A description of any additional eligibility requirements for voting in this contest.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level List<String>?
The levels of government of the office for this contest.
getter/setter pair
numberElected String?
The number of candidates that will be elected to office in this contest.
getter/setter pair
numberVotingFor String?
The number of candidates that a voter may vote for in this contest.
getter/setter pair
office String?
The name of the office for this contest.
getter/setter pair
primaryParties List<String>?
If this is a partisan election, the name of the party/parties it is for.
getter/setter pair
referendumBallotResponses List<String>?
The set of ballot responses for the referendum.
getter/setter pair
referendumBrief String?
Specifies a short summary of the referendum that is typically on the ballot below the title but above the text.
getter/setter pair
referendumConStatement String?
A statement in opposition to the referendum.
getter/setter pair
referendumEffectOfAbstain String?
Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether abstaining is considered a vote against it).
getter/setter pair
referendumPassageThreshold String?
The threshold of votes that the referendum needs in order to pass, e.g. "two-thirds".
getter/setter pair
referendumProStatement String?
A statement in favor of the referendum.
getter/setter pair
referendumSubtitle String?
A brief description of the referendum.
getter/setter pair
referendumText String?
The full text of the referendum.
getter/setter pair
referendumTitle String?
The title of the referendum (e.g. 'Proposition 42').
getter/setter pair
referendumUrl String?
A link to the referendum.
getter/setter pair
roles List<String>?
The roles which this office fulfills.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sources List<Source>?
A list of sources for this contest.
getter/setter pair
special String?
"Yes" or "No" depending on whether this a contest being held outside the normal election cycle.
getter/setter pair
type String?
The type of contest.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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