DictionaryField class

Information about a field.

Constructors

DictionaryField({required String key, required DictionaryValue value, String? label, String? changeMessage, PassTextAlign? textAlignment, DictionaryValue? attributedValue})
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
hashCode int
The hash code for this object.
no setterinherited
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlignment PassTextAlign?
Alignment for the field’s contents.
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.
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