Skip to content

Commit

Permalink
Merge pull request #1 from warioddly/warioddly-patch-2
Browse files Browse the repository at this point in the history
Update number_symbols.dart
  • Loading branch information
warioddly authored Nov 15, 2024
2 parents 0820942 + 0365af5 commit 45bd85c
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions pkgs/intl/lib/number_symbols.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,24 @@ class NumberSymbols {
CURRENCY_PATTERN,
DEF_CURRENCY_CODE;

const NumberSymbols(
{required this.NAME,
required this.DECIMAL_SEP,
required this.GROUP_SEP,
required this.PERCENT,
required this.ZERO_DIGIT,
required this.PLUS_SIGN,
required this.MINUS_SIGN,
required this.EXP_SYMBOL,
required this.PERMILL,
required this.INFINITY,
required this.NAN,
required this.DECIMAL_PATTERN,
required this.SCIENTIFIC_PATTERN,
required this.PERCENT_PATTERN,
required this.CURRENCY_PATTERN,
required this.DEF_CURRENCY_CODE});
const NumberSymbols({
required this.NAME,
required this.DECIMAL_SEP,
required this.GROUP_SEP,
required this.PERCENT,
required this.ZERO_DIGIT,
required this.PLUS_SIGN,
required this.MINUS_SIGN,
required this.EXP_SYMBOL,
required this.PERMILL,
required this.INFINITY,
required this.NAN,
required this.DECIMAL_PATTERN,
required this.SCIENTIFIC_PATTERN,
required this.PERCENT_PATTERN,
required this.CURRENCY_PATTERN,
required this.DEF_CURRENCY_CODE,
});

@override
String toString() => NAME;
Expand All @@ -57,8 +58,9 @@ class CompactNumberSymbols {
final Map<int, Map<String, String>> COMPACT_DECIMAL_SHORT_PATTERN;
final Map<int, Map<String, String>>? COMPACT_DECIMAL_LONG_PATTERN;
final Map<int, Map<String, String>> COMPACT_DECIMAL_SHORT_CURRENCY_PATTERN;
CompactNumberSymbols(
{required this.COMPACT_DECIMAL_SHORT_PATTERN,
this.COMPACT_DECIMAL_LONG_PATTERN,
required this.COMPACT_DECIMAL_SHORT_CURRENCY_PATTERN});
const CompactNumberSymbols({
required this.COMPACT_DECIMAL_SHORT_PATTERN,
this.COMPACT_DECIMAL_LONG_PATTERN,
required this.COMPACT_DECIMAL_SHORT_CURRENCY_PATTERN,
});
}

0 comments on commit 45bd85c

Please sign in to comment.