Candidate class

Information about a candidate running for elected office.

Constructors

Candidate({String? candidateUrl, List<Channel>? channels, String? email, String? name, String? orderOnBallot, String? party, String? phone, String? photoUrl})
Candidate.fromJson(Map json_)

Properties

candidateUrl String?
The URL for the candidate's campaign web site.
getter/setter pair
channels List<Channel>?
A list of known (social) media channels for this candidate.
getter/setter pair
email String?
The email address for the candidate's campaign.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The candidate's name.
getter/setter pair
orderOnBallot String?
The order the candidate appears on the ballot for this contest.
getter/setter pair
party String?
The full name of the party the candidate is a member of.
getter/setter pair
phone String?
The voice phone number for the candidate's campaign office.
getter/setter pair
photoUrl String?
A URL for a photo of the candidate.
getter/setter pair
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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