DictionaryField class

Information about a field.

Constructors

DictionaryField({required String key, required DictionaryValue value, DictionaryValue? attributedValue, String? label, String? changeMessage, PassTextAlign? textAlignment, PassTextNumberStyle? numberStyle, String? currencyCode, PassTextDateStyle? dateStyle, PassTextDateStyle? timeStyle, bool ignoresTimeZone = false})
const
DictionaryField.fromJson(Map<String, Object?> json)
factory

Properties

attributedValue DictionaryValue?
Attributed value of the field.
final
changeMessage String?
Format string for the alert text that is displayed when the pass is updated. The format string must contain the escape %@, which is replaced with the field’s new value. For example, “Gate changed to %@.”
final
currencyCode String?
ISO 4217 Currency Code for a numeric value.
final
dateStyle PassTextDateStyle?
Date and Time Style for a Date/Time value.
final
hashCode int
The hash code for this object.
no setterinherited
ignoresTimeZone bool
Wether to display the Date/Time value in the device timezone or in the timezone of the value.
final
key String
The key must be unique within the scope of the entire pass. For example, “departure-gate.”
final
label String?
Label text for the field.
final
numberStyle PassTextNumberStyle?
Number Style for a numeric value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlignment PassTextAlign?
Alignment for the field’s contents.
final
timeStyle PassTextDateStyle?
final
value DictionaryValue
Value of the field, for example, 42.
final

Methods

getLocalizedChangeMessage(PassFile pass, Locale? locale) String?
Localized version of changeMessage based on given locale and pass.
getLocalizedLabel(PassFile pass, Locale? locale) String?
Localized version of label based on given locale and pass.
getLocalizedValue(PassFile pass, Locale? locale) String?
Localized version of value based on given locale and pass.
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