budgetUsedOf method

  1. @override
String budgetUsedOf(
  1. int used,
  2. int total
)
override

Budget information showing used and total amount

In en, this message translates to: 'Budget: {used} / {total}'

Implementation

@override
String budgetUsedOf(int used, int total) {
  final intl.NumberFormat usedNumberFormat = intl.NumberFormat.decimalPattern(localeName);
  final String usedString = usedNumberFormat.format(used);
  final intl.NumberFormat totalNumberFormat = intl.NumberFormat.decimalPattern(localeName);
  final String totalString = totalNumberFormat.format(total);

  return 'Bilancio: $usedString / $totalString';
}