FlightUtils class

Constructors

FlightUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convertAmountToDesiredCurrency(String amount, {String sourceCurrency = "EUR", String destinationCurrency = 'USDT', int numberOfDecimals = 3}) Future<String>
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

Static Methods

calculateDiscountValue(String originalPrice, String discountPrice) String
convertBookingTripToTripModel(BookingTrips? trip) TripModel?
convertFlightsToFlightModel(Flights flight) FlightModel
convertMinutesIntoHourTime(int value, {bool isAmPmFormat = false}) String
convertTripToTimeline(BookingHistory history, List<Flights> flights, bool isDeparture) List<TimelineModel>
getDiscountPercentage(dynamic discount) String
getOrdinal(int index) String
imageHandler(String url, String name, double? height, [bool isNonDiscounted = true, String flightCode = '', bool isGenerating = false]) Widget
mapBookingStatus(String status) BookingStatus
totalDuration(List values) String