PollLocale class

Annotations

Constructors

PollLocale({required String languageCode, required String votesLabel, required String endsLabel, required String pollingEndedLabel, required String undoLabel, required String voteButtonLabel, String selectedLabel = 'Selected', String leadingLabel = 'Leading', PollTimeRemainingFormatter? timeRemainingFormatter})
const

Properties

endsLabel → String
final
hashCode → int
The hash code for this object.
no setterinherited
languageCode → String
The timeago locale used to format the time left, e.g. 'it'.
final
leadingLabel → String
Screen reader label for the option(s) with the most votes.
final
pollingEndedLabel → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedLabel → String
Screen reader label for the user's own pick in the results.
final
timeRemainingFormatter → PollTimeRemainingFormatter?
Replaces the timeago formatting of the time left.
final
undoLabel → String
final
voteButtonLabel → String
final
votesLabel → String
final

Methods

formatTimeRemaining(DateTime endsAt) → String
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

Constants

de → const PollLocale
en → const PollLocale
es → const PollLocale
fr → const PollLocale
it → const PollLocale