BankInstallmentPlanSelector class

Lets the user choose an installment plan from a list.

Inheritance

Constructors

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)?})
const

Properties

accentColor Color?
Accent for the selected border, tint, price, and radio fill. Defaults to the theme primary.
final
amountStyle TextStyle?
Merged over the monthly amount style (numeralSmall).
final
animationCurve Curve?
Curve of the row selection animation. Defaults to BankTokens.curveStandard.
final
animationDuration Duration?
Duration of the row selection animation. Defaults to BankTokens.durationBase.
final
aprTemplate String
Conventional rate line template; {rate} is the rate. Defaults to 'APR {rate}%'.
final
backgroundColor Color?
Fill of unselected rows. Defaults to the theme surface.
final
checkColor Color?
Color of the selected radio glyph. Defaults to white.
final
checkIcon IconData?
Glyph inside the selected radio dot. Defaults to Icons.check.
final
hashCode int
The hash code for this object.
no setterinherited
interestFreeLabel String
Rate line for interest-free plans. Defaults to 'Interest free'.
final
islamicFinanceMode bool
final
itemBuilder Widget Function(BuildContext context, InstallmentPlan plan)?
Replaces the entire default row (including tap handling) for each plan. Defaults to the built-in row.
final
itemPadding EdgeInsetsGeometry?
Overrides the row content padding. Defaults to EdgeInsets.all(BankTokens.space3).
final
itemSpacing double?
Vertical gap between rows. Defaults to BankTokens.space2.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
monthlyTemplate String
Monthly amount template; {amount} is the formatted amount. Defaults to '{amount}/mo'.
final
onPlanSelected ValueChanged<InstallmentPlan>?
final
plans List<InstallmentPlan>
final
profitRateTemplate String
Rate line template in Islamic mode; {rate} is the rate. Defaults to 'Profit rate {rate}%'.
final
radius BorderRadius?
Overrides the row corner radius. Defaults to the theme cardRadius.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedPlan InstallmentPlan?
final
semanticsTemplate String
Row semantics template; {n} is the term, {amount} the monthly amount. Defaults to '{n} months, {amount} per month'.
final
subtitleStyle TextStyle?
Merged over the rate line style (bodySmall, gain or variant color).
final
termTemplate String
Term line template; {n} is the term in months. Defaults to '{n} months'.
final
titleStyle TextStyle?
Merged over the term line style (labelLarge, onSurface).
final
totalStyle TextStyle?
Merged over the total line style (bodySmall, variant color).
final
totalTemplate String
Total line template; {amount} is the formatted total. Defaults to 'Total {amount}'.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited