FlightSearchController class

Inheritance

Constructors

FlightSearchController()

Properties

actualPassengers int
no setter
adultLimit int
no setter
airportsList RxList<FromAirport>
final
alertKey GlobalKey<State<StatefulWidget>>
final
allInfants int
no setter
allowedAdultPassengerLimit int
getter/setter pair
allTempInfants int
no setter
animationTimer Timer?
getter/setter pair
authenticationController AuthenticationController
final
autoSelectedAdults RxInt
getter/setter pair
bookedTripId String
getter/setter pair
bookingConfirmController BookingConfirmationController
final
box GetStorage
final
canAddAdults bool
no setter
cancelToken CancelToken
final
canChangeAdults RxBool
getter/setter pair
carouselTimer Timer?
getter/setter pair
cheapestExclusiveDuration int
no setter
cheapestExclusivePrice double
no setter
cheapestExclusiveTrip Rxn<OfferModel>
getter/setter pair
cheapestStandardDuration int
no setter
cheapestStandardPrice double
no setter
cheapestStandardTrip Rxn<OfferModel>
getter/setter pair
childrenAges RxList<int?>
final
classSelection List<String>
getter/setter pair
client FetchClient
getter/setter pair
commonAirportsList RxList<FromAirport>
final
contactUsController ContactUsController
final
currentDepartureConnectionTime Rx<RangeValues>
getter/setter pair
currentDepartureDuration Rx<RangeValues>
getter/setter pair
currentDonation RxDouble
getter/setter pair
currentInBoundRangeTimeValues Rx<RangeValues>
getter/setter pair
currentIndex RxInt
getter/setter pair
currentOfferConnectionTime Rx<RangeValues>
getter/setter pair
currentOfferDuration Rx<RangeValues>
getter/setter pair
currentOutBoundRangeTimeValues Rx<RangeValues>
getter/setter pair
currentReturnConnectionTime Rx<RangeValues>
getter/setter pair
currentSubscriptionName String
no setter
currentTab RxInt
final
departureDiscountPercentage double
no setter
departureRes FetchResponse?
getter/setter pair
departureSavedPrice double
no setter
departureStops int
no setter
departureTimeline RxList<TimelineModel>
getter/setter pair
departureTotalDiscountedPrice double
no setter
departureTotalOnlinePrice double
no setter
donationController TextEditingController
getter/setter pair
donationFocus FocusNode
getter/setter pair
estimatedQuote Estimate?
no setter
estimateQuote Rxn<EstimateRateQuote>
getter/setter pair
exclusiveBusinessClass RxList
getter/setter pair
exclusiveBusinessClassOffersCount RxInt
getter/setter pair
exclusiveBusinessCount RxInt
getter/setter pair
exclusiveEconomy RxList
getter/setter pair
exclusiveEconomyCount RxInt
getter/setter pair
exclusiveEconomyOffersCount RxInt
getter/setter pair
exclusiveFirstClass RxList
getter/setter pair
exclusiveFirstClassOffersCount RxInt
getter/setter pair
exclusiveFirstCount RxInt
getter/setter pair
exclusiveNonStopCount RxInt
getter/setter pair
exclusiveOffers RxList<OfferModel>
getter/setter pair
exclusiveOneStopCount RxInt
getter/setter pair
exclusivePremiumEconomy RxList
getter/setter pair
exclusivePremiumEconomyCount RxInt
getter/setter pair
exclusivePremiumEconomyOffersCount RxInt
getter/setter pair
exclusiveTwoStopCount RxInt
getter/setter pair
expandedIndex RxInt
getter/setter pair
fastestExclusiveDuration int
no setter
fastestExclusivePrice double
no setter
fastestExclusiveTrip Rxn<OfferModel>
getter/setter pair
fastestStandardDuration int
no setter
fastestStandardPrice double
no setter
fastestStandardTrip Rxn<OfferModel>
getter/setter pair
filteredList RxList
getter/setter pair
finalAmount double
no setter
flexibleDays RxInt
getter/setter pair
flightType Rx<FlightType>
final
fromAirportController TextEditingController
getter/setter pair
hasAddedAllPassengers bool
no setter
hasConfirmedBooking RxBool
getter/setter pair
hasConfirmedFlights bool
no setter
hasDiscountedFlight bool
no setter
hasFreeSubscriptionAndCreditsPurchased RxBool
getter/setter pair
hasFreeSubscriptionAndNoCreditsPurchased RxBool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setterinherited
hasSubscriptionAndDiscounted RxBool
getter/setter pair
hasSubscriptionAndNonDiscounted RxBool
getter/setter pair
hoverItemId Rxn<String>
getter/setter pair
initialized bool
Checks whether the controller has already been initialized.
no setterinherited
isClosed bool
Checks whether the controller has already been closed.
no setterinherited
isConnectionExpanded RxBool
getter/setter pair
isEditingPassenger RxBool
getter/setter pair
isExclusive bool
no setter
isExclusiveBusinessClass RxBool
getter/setter pair
isExclusiveClassExpanded RxBool
getter/setter pair
isExclusiveEconomy RxBool
getter/setter pair
isExclusiveFirstClass RxBool
getter/setter pair
isExclusivePlus bool
no setter
isExclusivePremiumEconomy RxBool
getter/setter pair
isExculsiveFlightsAvailable bool
no setter
isFilterOpen RxBool
getter/setter pair
isFilterUser RxBool
getter/setter pair
isFlexibleDeparture RxBool
getter/setter pair
isFlightTimeExpanded RxBool
getter/setter pair
isFromAirportNotEmpty RxBool
getter/setter pair
isJourneyExpanded RxBool
getter/setter pair
isMultiCity bool
no setter
isNonStop RxBool
getter/setter pair
isOneStop RxBool
getter/setter pair
isOneWay bool
no setter
isRemovedFlights bool
getter/setter pair
isRoundTrip bool
no setter
isSearching RxBool
getter/setter pair
isStandard bool
no setter
isStandardBusinessClass RxBool
getter/setter pair
isStandardClassExpanded RxBool
getter/setter pair
isStandardEconomy RxBool
getter/setter pair
isStandardFirstClass RxBool
getter/setter pair
isStandardPremiumEconomy RxBool
getter/setter pair
isStopsExpanded RxBool
getter/setter pair
isStreamingExclusive RxBool
getter/setter pair
isTempExclusive bool
no setter
isTempExclusivePlus bool
no setter
isTempMultiCity bool
no setter
isTempOneWay bool
no setter
isTempRoundTrip bool
no setter
isTempStandard bool
no setter
isToAirportNotEmpty RxBool
getter/setter pair
isTwoOrMore RxBool
getter/setter pair
listeners int
no setterinherited
maxDepartureConnectionTime RxDouble
getter/setter pair
maxDepartureDuration RxDouble
getter/setter pair
maxOfferConnectionTime RxDouble
getter/setter pair
maxPassengerCount RxInt
getter/setter pair
maxReturnConnectionTime RxDouble
getter/setter pair
maxStandardTripDuration RxDouble
getter/setter pair
maxTempConnectionTime RxDouble
getter/setter pair
maxTempDuration RxDouble
getter/setter pair
maxTempReturnConnectionTime RxDouble
getter/setter pair
maxTime RxDouble
getter/setter pair
membershipStatsController StatsController
final
messages List<Map<String, dynamic>>
no setter
milesPercentage int
no setter
minDepartureConnectionTime RxDouble
getter/setter pair
minDepartureDuration RxDouble
getter/setter pair
minDonation RxDouble
getter/setter pair
minExclusiveTripDuration RxDouble
getter/setter pair
minOfferConnectionTime RxDouble
getter/setter pair
minReturnConnectionTime RxDouble
getter/setter pair
minStandardTripDuration RxDouble
getter/setter pair
minTempConnectionTime RxDouble
getter/setter pair
minTempDuration RxDouble
getter/setter pair
minTempReturnConnectionTime RxDouble
getter/setter pair
minTime RxDouble
getter/setter pair
neededSearchCredit int
no setter
neoMilesBalance int
no setter
neoMilesController NeoMilesController
final
numOfStops int
no setter
numSkips RxInt
getter/setter pair
numTakes RxInt
getter/setter pair
onDelete InternalFinalCallback<void>
Internal callback that starts the cycle of this controller.
finalinherited
onStart InternalFinalCallback<void>
Called at the exact moment the widget is allocated in memory. It uses an internal "callable" type, to avoid any @overrides in subclases. This method should be internal and is required to define the lifetime cycle of the subclass.
finalinherited
openPassengerIndex RxInt
getter/setter pair
passengerExpanded RxBool
getter/setter pair
passengersController PassengersController
final
passengerTitles RxList<String>
getter/setter pair
passengerTypes RxList<String>
getter/setter pair
paymentController PaymentController
final
paymentExpireStartDate Rxn<DateTime>
final
paymentExpireTimer Timer?
getter/setter pair
paymentExpireTimerCount RxInt
final
perPageCount int
final
rateRequestConsumed int
no setter
rateRequestRemaining int
no setter
rateRequestTotal int
no setter
remainingSearchCredit int
no setter
returnDiscountPercentage double
no setter
returnRes FetchResponse?
getter/setter pair
returnSavedPrice double
no setter
returnStops int
no setter
returnTimeline RxList<TimelineModel>
getter/setter pair
returnTotalDiscountedPrice double
no setter
returnTotalOnlinePrice double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savedDonation RxDouble
getter/setter pair
searchAdults RxInt
getter/setter pair
searchChildren RxInt
getter/setter pair
searchClassIndex RxInt
getter/setter pair
searchController TextEditingController
getter/setter pair
searchCreditConsumed int
no setter
searchCreditEarned RxInt
final
searchCreditNeededForRateRequest int
no setter
searchCreditRemaining int
no setter
searchCreditText String
no setter
searchCreditTotal int
no setter
searchCreditUsed RxInt
final
searchDepartureDate RxString
getter/setter pair
searchExpireStartDate Rxn<DateTime>
final
searchExpireTimer Timer?
getter/setter pair
searchExpireTimerCount RxInt
final
searchFromAirport Rxn<FromAirport>
getter/setter pair
searchInfantsInLap RxInt
getter/setter pair
searchInfantsInSeats RxInt
getter/setter pair
searchingPercentage RxDouble
final
searchingTimer RxDouble
final
searchReturnDate RxString
getter/setter pair
searchToAirport Rxn<FromAirport>
getter/setter pair
selectedExclusiveOffer Rxn<OfferModel>
getter/setter pair
selectedPassengers RxList<Passengers?>
getter/setter pair
selectedStandardOffer Rxn<OfferModel>
getter/setter pair
shouldInitSearch bool
no setter
showDeepSearchAgain RxBool
final
showExclusiveFlights RxBool
getter/setter pair
showFlightTypesAgain RxBool
final
showSearchCreditText bool
no setter
showStandardPrice RxBool
getter/setter pair
sortBy RxString
getter/setter pair
standardBusinessClass RxList
getter/setter pair
standardBusinessClassCount RxInt
getter/setter pair
standardBusinessClassOffersCount RxInt
getter/setter pair
standardEconomy RxList
getter/setter pair
standardEconomyClassCount RxInt
getter/setter pair
standardEconomyOffersCount RxInt
getter/setter pair
standardFirstClass RxList
getter/setter pair
standardFirstClassCount RxInt
getter/setter pair
standardFirstClassOffersCount RxInt
getter/setter pair
standardNonStopCount RxInt
getter/setter pair
standardOffers RxList<OfferModel>
getter/setter pair
standardOneStopCount RxInt
getter/setter pair
standardPremiumEconomy RxList
getter/setter pair
standardPremiumEconomyClassCount RxInt
getter/setter pair
standardPremiumEconomyOffersCount RxInt
getter/setter pair
standardTwoStopCount RxInt
getter/setter pair
tempAdult RxInt
getter/setter pair
tempChildren RxInt
getter/setter pair
tempFlightType Rx<FlightType>
final
tempInfantsInLap RxInt
getter/setter pair
tempInfantsInSeats RxInt
getter/setter pair
tempInfantsTotal int
no setter
tempPassengerTotal int
no setter
tempTotalPassengers int
no setter
tempTripType Rx<TripType>
final
toAirportController TextEditingController
getter/setter pair
totalAmount double
no setter
totalMilesEarned double
no setter
totalPassengers int
no setter
totalReceivedMiles double
no setter
totalSaved double
no setter
totalSpendAmount double
no setter
totalStandardOffersCount RxInt
getter/setter pair
totalTripLength int
no setter
tripExpanded RxBool
getter/setter pair
tripNonStopCount int
no setter
tripOneStopCount int
no setter
tripStream TripStreamController
getter/setter pair
tripTwoStopCount int
no setter
tripType Rx<TripType>
final
useNeoMiles RxBool
getter/setter pair
userData UserModel?
no setter
userEmail String
no setter
version RxString
getter/setter pair
visibleItem RxInt
getter/setter pair

Methods

$configureLifeCycle() → void
inherited
addListener(GetStateUpdate listener) Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) Disposer
inherited
backToDeparture() → void
calculateSharedDonation() → void
checkBookingisWithIn12Hours(String dDate, String dTime) int
checkFlightTimes(DateTime outboundDate, int outboundTimeInMinutes, DateTime inboundDate, int inboundTimeInMinutes, BuildContext context) Future<bool>
checkRoundTripExclusiveInfo(void onSuccess()?) Future<void>
checkSearch() Future<bool>
clearDonation() → void
clearSearch() → void
clearSearchFlightsFields() → dynamic
closeStream() → dynamic
confirmPassengers(VoidCallback onClickAddPassenger) bool
dispose() → void
override
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
exclusiveRateRequest() Future<void>
filterByFlightClass(dynamic flight) bool
filterByStops(dynamic flight) bool
getEstimatedOnlinePrice({OfferModel? offer, bool setQoute = true}) Future<EstimateRateQuote?>
getRemainingTime(DateTime startTime, int maxMinutes) int
gotoPayment() → void
goToSubscription() → void
highlight() → void
initPassengers({bool clearPassengers = true}) → void
initSearch() Future<void>
isExpiryDateValid(DateTime? expiryDate) bool
isPaymentFailed(String bookingId) Future<bool>
isSearchSameAsStored() Future<bool>
isValidaPassenger([Passengers? passenger]) bool
isValidSearch() bool
listenToMainStream() → dynamic
loadCommonAirports() → void
loadDiscountedTrips(Object? data, {CancelToken? cancelToken}) Future<FetchResponse>
loadMore() → void
loadNonDiscountedTrips(Map<String, Object>? data) Future<void>
loadTripsV3({bool fromHome = false}) Future<void>
modifySearch() → void
nextMessage() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChildrens() → void
inherited
onClose() → void
Called before onDelete method. onClose might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.
inherited
onInit() → void
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
override
onReady() → void
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
inherited
openLoadingDialog() → void
passengersText() String
prepareFilters() → dynamic
prepareFilterValuesForExclusive() → void
prepareFilterValuesForStandard() → void
prepareTrips() → void
previousMessage() → void
refresh() → void
inherited
refreshGroup(Object id) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
removeListenerId(Object id, VoidCallback listener) → void
inherited
requestComplimentaryMemberShip() Future<bool>
reverseAirports() → void
saveRoundTrip() Future<void>
searchAirport(String searchString) Future<List<FromAirport>>
searchAirportMobile(String searchString) → void
selectFlightClass(GlobalKey<State<StatefulWidget>> positionKey, BuildContext context) → void
selectOffer(OfferModel offer, void onSelected()) → void
selectTrip(OfferModel trip, void onSelected()) → void
setSharedDonationByTextField(String value) → void
setSharedDonationFromOption(double value) → void
shouldShowLayoverWarning() bool
showBigFlightDatePicker(dynamic positionKey, dynamic context) → void
showCustomDatePicker(bool fromReturn, dynamic context) → void
showFlightDatePicker(dynamic positionKey, dynamic context) → void
sort(String newValue) → void
sortOrderBy(RxList list) RxList
startBooking(BuildContext context, bool isReserve, {void onSuccess()?, void goToDonation()?}) → void
startBookingOffers(BuildContext context, {void onSuccess()?, void goToDonation()?}) Future<void>
startTimer() → void
stickToLimit() → void
stopAnimationTimer() → void
storeSearch() → dynamic
toggleExpanded(int index) Future<void>
toString() String
A string representation of this object.
inherited
update([List<Object>? ids, bool condition = true]) → void
Rebuilds GetBuilder each time you call update(); Can take a List of ids, that will only update the matching GetBuilder( id: ), ids can be reused among GetBuilders like group tags. The update will only notify the Widgets, if condition is true.
inherited
updateSubscriptionStatus() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited