BoardingPassLeg class final

One flight of a BoardingPassContent.

Annotations

Constructors

BoardingPassLeg({required String bookingReference, required String from, required String to, required String carrier, required String flightNumber, required int? dayOfYear, required String cabin, required String seat, required String sequenceNumber})
Creates a leg.
const

Properties

bookingReference → String
The booking reference (PNR), such as ABC123.
final
cabin → String
The compartment code, such as Y (economy) or C (business).
final
carrier → String
The IATA code of the airline, such as LH.
final
dayOfYear → int?
The day of the flight in its year (1–366), as the pass gives it; null if not given. The pass does not say which year.
final
flightNumber → String
The flight number without leading zeros, such as 1234 or 12A.
final
from → String
The IATA code of the departure airport, such as EVN.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seat → String
The seat without leading zeros, such as 12A; empty if not assigned.
final
sequenceNumber → String
The check-in sequence number without leading zeros.
final
to → String
The IATA code of the arrival airport.
final

Methods

dateIn(int year) → DateTime?
dayOfYear as a date in year.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override