PricingPage constructor

const PricingPage({
  1. Key? key,
  2. required List<PricesModel> pricesList,
  3. int? crossAxisCount,
  4. String title = 'Pricing',
  5. required String subtitle,
  6. String buttonName = 'START NOW',
  7. String perYearText = 'START NOW',
  8. String perMonthText = 'START NOW',
  9. String payMonthly = 'Pay monthly',
  10. String payYearly = 'Pay yearly',
  11. BoxDecoration decorationMapper(
    1. BoxDecoration decoration
    )?,
  12. double childAspectRatio = 1,
  13. double width = double.infinity,
  14. bool forceAllColumnsToHaveSameSizeInDesktop = false,
})

Implementation

const PricingPage({
  super.key,
  required this.pricesList,
  int? crossAxisCount,
  this.title = 'Pricing',
  required this.subtitle,
  this.buttonName = 'START NOW',
  this.perYearText = 'START NOW',
  this.perMonthText = 'START NOW',
  this.payMonthly = 'Pay monthly',
  this.payYearly = 'Pay yearly',
  this.decorationMapper,
  this.childAspectRatio = 1,
  this.width = double.infinity,
  this.forceAllColumnsToHaveSameSizeInDesktop = false,
}) : crossAxisCount = crossAxisCount ?? pricesList.length;