Index: pkg/intl/lib/number_format.dart |
diff --git a/pkg/intl/lib/number_format.dart b/pkg/intl/lib/number_format.dart |
index 4ca3eb66ab1fe55c15235b3dda9a2d2353e31c3a..00373d280b9efe85194487f3f5f1547198d3cff4 100644 |
--- a/pkg/intl/lib/number_format.dart |
+++ b/pkg/intl/lib/number_format.dart |
@@ -169,7 +169,7 @@ class NumberFormat { |
paddingDigits.add(symbols.ZERO_DIGIT); |
intValue = intValue ~/ 10; |
} |
- var integerDigits = "${intValue}${paddingDigits}".charCodes(); |
+ var integerDigits = "${intValue}${paddingDigits}".charCodes; |
var digitLength = integerDigits.length; |
if (_hasPrintableIntegerPart(intValue)) { |
@@ -191,7 +191,7 @@ class NumberFormat { |
* Format the part after the decimal place in a fixed point number. |
*/ |
void _formatFractionPart(String fractionPart) { |
- var fractionCodes = fractionPart.charCodes(); |
+ var fractionCodes = fractionPart.charCodes; |
var fractionLength = fractionPart.length; |
while (fractionPart[fractionLength - 1] == '0' && |
fractionLength > _minimumFractionDigits + 1) { |
@@ -237,7 +237,7 @@ class NumberFormat { |
for (var i = 0; i < numberOfDigits - basic.length; i++) { |
_add(symbols.ZERO_DIGIT); |
} |
- for (var x in basic.charCodes()) { |
+ for (var x in basic.charCodes) { |
_addDigit(x); |
} |
} |
@@ -258,7 +258,7 @@ class NumberFormat { |
} |
/** Returns the code point for the character '0'. */ |
- int get _zero => '0'.charCodes()[0]; |
+ int get _zero => '0'.charCodes[0]; |
/** Returns the code point for the locale's zero digit. */ |
int get _localeZero => symbols.ZERO_DIGIT.charCodeAt(0); |