BankInstallmentPlanSelector constructor
const
BankInstallmentPlanSelector({
- required List<
InstallmentPlan> plans, - Key? key,
- InstallmentPlan? selectedPlan,
- ValueChanged<
InstallmentPlan> ? onPlanSelected, - bool islamicFinanceMode = false,
- String termTemplate = '{n} months',
- String interestFreeLabel = 'Interest free',
- String profitRateTemplate = 'Profit rate {rate}%',
- String aprTemplate = 'APR {rate}%',
- String monthlyTemplate = '{amount}/mo',
- String totalTemplate = 'Total {amount}',
- String semanticsTemplate = '{n} months, {amount} per month',
- Color? accentColor,
- Color? backgroundColor,
- BorderRadius? radius,
- EdgeInsetsGeometry? itemPadding,
- double? itemSpacing,
- Duration? animationDuration,
- Curve? animationCurve,
- IconData? checkIcon,
- Color? checkColor,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? amountStyle,
- TextStyle? totalStyle,
- Widget itemBuilder(
- BuildContext context,
- 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,
});