Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 596313345
  • Loading branch information
Googler authored and copybara-github committed Jan 8, 2024
1 parent 893a92c commit 443a639
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkgs/intl/lib/number_symbols_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ library number_symbol_data;
import "number_symbols.dart";

/// Map from locale to [NumberSymbols] used for that locale.
Map<dynamic, dynamic> numberFormatSymbols = <String, NumberSymbols>{
Map<String, NumberSymbols> numberFormatSymbols = <String, NumberSymbols>{
// Number formatting symbols for locale af.
"af": new NumberSymbols(
NAME: "af",
Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl/lib/src/intl/compact_number_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class _CompactNumberFormat extends NumberFormat {
// Initialization copied from `NumberFormat` constructor.
// TODO(davidmorgan): deduplicate.
locale = helpers.verifiedLocale(locale, NumberFormat.localeExists, null)!;
var symbols = numberFormatSymbols[locale] as NumberSymbols;
var symbols = numberFormatSymbols[locale]!;
var localeZero = symbols.ZERO_DIGIT.codeUnitAt(0);
var zeroOffset = localeZero - constants.asciiZeroCodeUnit;
name ??= symbols.DEF_CURRENCY_CODE;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl/lib/src/intl/number_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class NumberFormat {
bool lookupSimpleCurrencySymbol = false,
bool isForCurrency = false}) {
locale = helpers.verifiedLocale(locale, localeExists, null)!;
var symbols = numberFormatSymbols[locale] as NumberSymbols;
var symbols = numberFormatSymbols[locale]!;
var localeZero = symbols.ZERO_DIGIT.codeUnitAt(0);
var zeroOffset = localeZero - constants.asciiZeroCodeUnit;
name ??= symbols.DEF_CURRENCY_CODE;
Expand Down

0 comments on commit 443a639

Please sign in to comment.