BankInstallmentPlanSelector constructor

const BankInstallmentPlanSelector({
  1. required List<InstallmentPlan> plans,
  2. Key? key,
  3. InstallmentPlan? selectedPlan,
  4. ValueChanged<InstallmentPlan>? onPlanSelected,
  5. bool islamicFinanceMode = false,
  6. String termTemplate = '{n} months',
  7. String interestFreeLabel = 'Interest free',
  8. String profitRateTemplate = 'Profit rate {rate}%',
  9. String aprTemplate = 'APR {rate}%',
  10. String monthlyTemplate = '{amount}/mo',
  11. String totalTemplate = 'Total {amount}',
  12. String semanticsTemplate = '{n} months, {amount} per month',
  13. Color? accentColor,
  14. Color? backgroundColor,
  15. BorderRadius? radius,
  16. EdgeInsetsGeometry? itemPadding,
  17. double? itemSpacing,
  18. Duration? animationDuration,
  19. Curve? animationCurve,
  20. IconData? checkIcon,
  21. Color? checkColor,
  22. TextStyle? titleStyle,
  23. TextStyle? subtitleStyle,
  24. TextStyle? amountStyle,
  25. TextStyle? totalStyle,
  26. Widget itemBuilder(
    1. BuildContext context,
    2. InstallmentPlan plan
    )?,
})

Implementation

const BankInstallmentPlanSelector({
  required this.plans,
  super.key,
  this.selectedPlan,
  this.onPlanSelected,
  this.islamicFinanceMode = false,
  this.termTemplate = '{n} months',
  this.interestFreeLabel = 'Interest free',
  this.profitRateTemplate = 'Profit rate {rate}%',
  this.aprTemplate = 'APR {rate}%',
  this.monthlyTemplate = '{amount}/mo',
  this.totalTemplate = 'Total {amount}',
  this.semanticsTemplate = '{n} months, {amount} per month',
  this.accentColor,
  this.backgroundColor,
  this.radius,
  this.itemPadding,
  this.itemSpacing,
  this.animationDuration,
  this.animationCurve,
  this.checkIcon,
  this.checkColor,
  this.titleStyle,
  this.subtitleStyle,
  this.amountStyle,
  this.totalStyle,
  this.itemBuilder,
});