Flight class

All details related to a single request item for a direct flight emission estimates.

Constructors

Flight({Date? departureDate, String? destination, int? flightNumber, String? operatingCarrierCode, String? origin})
Flight.fromJson(Map json_)

Properties

departureDate Date?
Date of the flight in the time zone of the origin airport.
getter/setter pair
destination String?
IATA airport code for flight destination, e.g. "JFK".
getter/setter pair
flightNumber int?
Flight number, e.g. 324.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
operatingCarrierCode String?
IATA carrier code, e.g. "AA".
getter/setter pair
origin String?
IATA airport code for flight origin, e.g. "LHR".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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