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

Unified Diff: sky/framework/animation/animated_value.dart

Issue 1092423003: [Effen] Reduce splashes when scrolling. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix comments from eseidel Created 5 years, 8 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
« no previous file with comments | « no previous file | sky/framework/animation/generators.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/animation/animated_value.dart
diff --git a/sky/framework/animation/animated_value.dart b/sky/framework/animation/animated_value.dart
index 11f1dea27197fb3892ee5d9319478a5c3ab8d247..d07dac5646191c465fd2f2539a8581d0ae1ee61f 100644
--- a/sky/framework/animation/animated_value.dart
+++ b/sky/framework/animation/animated_value.dart
@@ -67,4 +67,11 @@ class AnimatedValue {
_completer = new Completer();
return _completer.future;
}
+
+ double get remainingTime {
+ if (_animation == null)
+ return 0.0;
+ return _animation.remainingTime;
+ }
+
}
« no previous file with comments | « no previous file | sky/framework/animation/generators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698