PassStructure class

Keys that define the structure of the pass. These keys are used for all pass styles and partition the fields into the various parts of the pass.

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

PassStructure({List<FieldDict>? auxiliaryFields, List<FieldDict>? backFields, List<FieldDict>? headerFields, List<FieldDict>? primaryFields, List<FieldDict>? secondaryFields, TransitType transitType = TransitType.generic})
PassStructure.fromJson(Map<String, dynamic> json)
factory

Properties

auxiliaryFields List<FieldDict>?
Optional. Additional fields to be displayed on the front of the pass.
final
backFields List<FieldDict>?
Optional. Fields to be on the back of the pass.
final
hashCode int
The hash code for this object.
no setterinherited
headerFields List<FieldDict>?
Optional. Fields to be displayed in the header on the front of the pass. Use header fields sparingly; unlike all other fields, they remain visible when a stack of passes are displayed.
final
primaryFields List<FieldDict>?
Optional. Fields to be displayed prominently on the front of the pass.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryFields List<FieldDict>?
Optional. Fields to be displayed on the front of the pass.
final
transitType TransitType
Required for boarding passes; otherwise not allowed. Type of transit. Must be one of the following values: PKTransitTypeAir, PKTransitTypeBoat, PKTransitTypeBus, PKTransitTypeGeneric,PKTransitTypeTrain.
final

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