getMonthlySearchedBookingValue method

String getMonthlySearchedBookingValue()

Implementation

String getMonthlySearchedBookingValue() {
  String bookingType = controller.getBookingType();

  return bookingType == 'all'
      ? '${(controller.bookingStats.value?.searched?.monthly?.all ?? 0).round()}'
      : bookingType == 'eco'
          ? '${(controller.bookingStats.value?.searched?.monthly?.economyPremium ?? 0).round()}'
          : bookingType == 'business'
              ? '${(controller.bookingStats.value?.searched?.monthly?.firstBusiness ?? 0).round()}'
              : '0';
}