Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Unified Diff: packages/charted/lib/locale/format/number_format.dart

Issue 2213693002: Updated charted DEP to 0.4.X (Closed) Base URL: https://github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: packages/charted/lib/locale/format/number_format.dart
diff --git a/packages/charted/lib/locale/format/number_format.dart b/packages/charted/lib/locale/format/number_format.dart
index 5761e2bcf86efee4ff3135be36e350303dea16ab..9e938f9990f84d00b2859cef79a0373ff9811860 100644
--- a/packages/charted/lib/locale/format/number_format.dart
+++ b/packages/charted/lib/locale/format/number_format.dart
@@ -186,13 +186,13 @@ class NumberFormat {
before = formatGroup(before);
}
- var length = prefix.length +
- before.length +
- after.length +
- (zcomma ? 0 : negative.length),
- padding = length < width
- ? new List.filled((length = width - length + 1), '').join(fill)
- : '';
+ int length = prefix.length +
+ before.length +
+ after.length +
+ (zcomma ? 0 : negative.length);
+ var padding = length < width
+ ? new List.filled((length = width - length + 1), '').join(fill)
+ : '';
// If the fill character is '0', grouping is applied after padding.
if (zcomma) {
« no previous file with comments | « packages/charted/lib/layout/src/treemap_layout.dart ('k') | packages/charted/lib/locale/format/time_format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698