BoardingPassContent class final
An airline boarding pass (IATA Bar Coded Boarding Pass, Resolution 792): the passenger and one leg per flight.
Only the mandatory fields are read; airline data is left in raw. toPayload returns raw.
- Inheritance
-
- Object
- BarcodeContent
- BoardingPassContent
Constructors
-
BoardingPassContent({required String passengerName, required List<
BoardingPassLeg> legs, required String raw, bool electronicTicket = false}) -
Creates boarding pass content.
const
Properties
- electronicTicket → bool
-
Whether the ticket is electronic.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
legs
→ List<
BoardingPassLeg> -
The flights, at least one.
final
- passengerName → String
-
The name as printed,
SURNAME/GIVEN NAMES.final - raw → String
-
The text as read.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri?
-
A link that opens this content in the app made for it, for
launchUrlof package:url_launcher;nullwhen there is none.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPayload(
) → String -
raw, the text as read.
override
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → List< ContentIssue> -
The problems that keep toPayload from building this value, such as
an empty network name or a latitude out of range. Empty when the value
can be built. For forms: show each ContentIssue.message next to its
ContentIssue.field.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override