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

Unified Diff: packages/charted/lib/core/scales.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/core/scales.dart
diff --git a/packages/charted/lib/core/scales.dart b/packages/charted/lib/core/scales.dart
index e4a9948616d896e251d8160132bf3729b09533be..48a11f5f7a6082e78b1308f613956fd6c4872571 100644
--- a/packages/charted/lib/core/scales.dart
+++ b/packages/charted/lib/core/scales.dart
@@ -113,8 +113,9 @@ class RoundingFunctions extends Pair<RoundFunction, RoundFunction> {
factory RoundingFunctions.defaults() =>
new RoundingFunctions((x) => x.floor(), (x) => x.ceil());
- factory RoundingFunctions.identity() =>
- new RoundingFunctions(identityFunction, identityFunction);
+ factory RoundingFunctions.identity() => new RoundingFunctions(
+ (num n) => identityFunction/*<num>*/(n),
+ (num n) => identityFunction/*<num>*/(n));
RoundFunction get floor => super.first;
RoundFunction get ceil => super.last;
« no previous file with comments | « packages/charted/lib/core/interpolators/interpolators.dart ('k') | packages/charted/lib/core/scales/linear_scale.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698