PricingSection constructor

const PricingSection({
  1. Key? key,
  2. required bool hasDiscount,
  3. required String discountPercentage,
  4. required String basePrice,
  5. required String discountedPrice,
  6. required String currency,
  7. required String savedAmount,
  8. required String onlinePriceProviderName,
  9. required bool isNonDiscounted,
  10. required String onlinePriceProviderCode,
  11. bool showCryptoAccepetedBadge = true,
  12. required bool isRoundTrip,
  13. bool showPassengerPassengerCount = false,
  14. int? passengerCount,
  15. bool isInColumn = false,
  16. bool fromTopFlights = false,
  17. bool hideBorder = false,
  18. ExtraServices? extras,
  19. bool isPowerAvailable = false,
  20. bool isSeatAvailable = false,
  21. bool isWifiAvailable = false,
  22. bool showApproxSymbol = false,
  23. double? btcPrice,
})

Implementation

const PricingSection({
  super.key,
  required this.hasDiscount,
  required this.discountPercentage,
  required this.basePrice,
  required this.discountedPrice,
  required this.currency,
  required this.savedAmount,
  required this.onlinePriceProviderLogo,
  required this.onlinePriceProviderName,
  required this.isNonDiscounted,
  required this.onlinePriceProviderCode,
  this.showCryptoAccepetedBadge = true,
  required this.isRoundTrip,
  this.showPassengerPassengerCount = false,
  this.passengerCount,
  this.isInColumn = false,
  this.fromTopFlights = false,
  this.hideBorder = false,
  this.extras,
  this.isPowerAvailable = false,
  this.isSeatAvailable = false,
  this.isWifiAvailable = false,
  this.showApproxSymbol = false,
  this.btcPrice,
});