FieldDict class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

FieldDict({String? attributedValue, String? changeMessage, List<DataDetectorTypes>? dataDetectorTypes, required String key, String? label, PkTextAlignment textAlignment = PkTextAlignment.natural, required Object? value, String? currencyCode, DateStyle? dateStyle, DateStyle? timeStyle, NumberStyle? numberStyle, bool? ignoresTimeZone, bool? isRelative, Semantics? semantics, int? row})
FieldDict.fromJson(Map<String, dynamic> json)
factory

Properties

attributedValue String?
Optional. Attributed value of the field. The value may contain HTML markup for links. Only the tag and its href attribute are supported. For example, the following is key-value pair specifies a link with the text “Edit my profile”: "attributedValue": "Edit my profile" This key’s value overrides the text specified by the value key. Available in iOS 7.0.
final
changeMessage String?
Optional. 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 %@.” If you don’t specify a change message, the user isn’t notified when the field changes.
final
currencyCode String?
The currency code to use for the value of the field. ISO 4217 currency code as a string
final
dataDetectorTypes List<DataDetectorTypes>?
Optional. Data detectors that are applied to the field’s value. Valid values are:
final
dateStyle DateStyle?
The style of the date to display in the field.
final
hashCode int
The hash code for this object.
no setterinherited
ignoresTimeZone bool?
A Boolean value that controls the time zone for the time and date to display in the field. The default value is false, which displays the time and date using the current device’s time zone. Otherwise, the time and date appear in the time zone associated with the date and time of value.
final
isRelative bool?
A Boolean value that controls whether the date appears as a relative date. The default value is false, which displays the date as an absolute date.
final
key String
Required. The key must be unique within the scope of the entire pass. For example, “departure-gate.”
final
label String?
Optional. Label text for the field.
final
numberStyle NumberStyle?
The style of the number to display in the field. Formatter styles have the same meaning as the formats with corresponding names in NumberFormatter.Style. Possible Values: PKNumberStyleDecimal, PKNumberStylePercent, PKNumberStyleScientific, PKNumberStyleSpellOut
final
row int?
A number you use to add a row to the auxiliary field in an event ticket pass type. Set the value to 1 to add an auxiliary row. Each row displays up to four fields.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semantics Semantics?
You can augment the user-visible information on Wallet passes with machine-readable metadata known as semantic tags. The metadata in semantic tags helps the system better understand Wallet passes and suggest relevant actions for the user to take on their installed passes.
final
textAlignment PkTextAlignment
Optional. Alignment for the field’s contents. Must be one of the following values:
final
timeStyle DateStyle?
The style of the time displayed in the field.
final
value Object?
Required. Value of the field, for example, 42. This can contain a localizable string, ISO 8601 date as a string, or a number (double/int)
final

Methods

formatted({String? locale}) String?
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