FlightInfo class
A model representing flight timing information, including departure, arrival, and total duration.
This class is useful for flight-related UIs, such as ticket cards, schedules, or calculating arrival times based on departure and duration.
Constructors
- FlightInfo({required String flightNumber, required Duration flightDuration, required DateTime departureTime, required DateTime arrivalTime})
Properties
- arrivalDateFormatted → String
-
no setter
- arrivalTime → DateTime
-
final
- departureDateFormatted → String
-
no setter
- departureTime → DateTime
-
final
- flightDuration → Duration
-
final
- flightNumber → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited