BankOverdraftCushionMeter constructor
const
BankOverdraftCushionMeter({
- required Money limit,
- required Money used,
- required bool enabled,
- Key? key,
- Money? nextEligibleIncrease,
- ValueChanged<
bool> ? onChanged, - VoidCallback? onAdjust,
- String title = 'Overdraft cushion',
- String feeFreeLabel = 'Fee-free',
- String remainingTemplate = '{remaining} remaining',
- String increaseTemplate = 'Increase available: {amount}',
- String disabledExplainer = 'Your cushion is off. Turn it on to spend a ' 'little past zero without fees.',
- EdgeInsetsGeometry? padding,
- BorderRadius? radius,
- Color? backgroundColor,
- List<
BoxShadow> ? shadow, - Color? accentColor,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? amountStyle,
- double? meterHeight,
- IconData? chevronIcon,
- Duration? animationDuration,
- Curve? animationCurve,
- String? semanticLabel,
Implementation
const BankOverdraftCushionMeter({
required this.limit,
required this.used,
required this.enabled,
super.key,
this.nextEligibleIncrease,
this.onChanged,
this.onAdjust,
this.title = 'Overdraft cushion',
this.feeFreeLabel = 'Fee-free',
this.remainingTemplate = '{remaining} remaining',
this.increaseTemplate = 'Increase available: {amount}',
this.disabledExplainer = 'Your cushion is off. Turn it on to spend a '
'little past zero without fees.',
this.padding,
this.radius,
this.backgroundColor,
this.shadow,
this.accentColor,
this.titleStyle,
this.subtitleStyle,
this.amountStyle,
this.meterHeight,
this.chevronIcon,
this.animationDuration,
this.animationCurve,
this.semanticLabel,
});