BankOverdraftCushionMeter constructor

const BankOverdraftCushionMeter({
  1. required Money limit,
  2. required Money used,
  3. required bool enabled,
  4. Key? key,
  5. Money? nextEligibleIncrease,
  6. ValueChanged<bool>? onChanged,
  7. VoidCallback? onAdjust,
  8. String title = 'Overdraft cushion',
  9. String feeFreeLabel = 'Fee-free',
  10. String remainingTemplate = '{remaining} remaining',
  11. String increaseTemplate = 'Increase available: {amount}',
  12. String disabledExplainer = 'Your cushion is off. Turn it on to spend a ' 'little past zero without fees.',
  13. EdgeInsetsGeometry? padding,
  14. BorderRadius? radius,
  15. Color? backgroundColor,
  16. List<BoxShadow>? shadow,
  17. Color? accentColor,
  18. TextStyle? titleStyle,
  19. TextStyle? subtitleStyle,
  20. TextStyle? amountStyle,
  21. double? meterHeight,
  22. IconData? chevronIcon,
  23. Duration? animationDuration,
  24. Curve? animationCurve,
  25. 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,
});