onInit method

  1. @override
void onInit()
override

Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.

Implementation

@override
void onInit() async{
  super.onInit();
  isScrollingUp.value = false;
  reachedStart.value = true;

  //TODO: If using init to call any api call, check profile controller, we are making use of dashboard controller, try to seperate controllers
  getTotalSaved();
  getBookingStats(flightFilterType.value);
  savings_FetchData();
  transaction_FetchData();
  mySharedBenefits_FetchData();
}