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

Unified Diff: sky/sdk/lib/animation/animation_performance.dart

Issue 1232403004: Trivial code style changes in animation code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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: sky/sdk/lib/animation/animation_performance.dart
diff --git a/sky/sdk/lib/animation/animation_performance.dart b/sky/sdk/lib/animation/animation_performance.dart
index 8d8efac0d4e571171662dee346af1ac4799ca954..b857ee957efe4413bf11901f537ed5bfeb9f8348 100644
--- a/sky/sdk/lib/animation/animation_performance.dart
+++ b/sky/sdk/lib/animation/animation_performance.dart
@@ -7,10 +7,11 @@ import 'package:sky/animation/curves.dart';
abstract class AnimatedVariable {
void setFraction(double t);
+ String toString();
}
class AnimatedType<T extends dynamic> extends AnimatedVariable {
- AnimatedType(this.begin, {this.end, this.curve: linear}) {
+ AnimatedType(this.begin, { this.end, this.curve: linear }) {
value = begin;
}
@@ -25,6 +26,8 @@ class AnimatedType<T extends dynamic> extends AnimatedVariable {
value = begin + (end - begin) * curve.transform(t);
}
}
+
+ String toString() => 'AnimatedType(begin=$begin, end=$end, value=$value)';
}
class AnimatedList extends AnimatedVariable {
@@ -34,6 +37,7 @@ class AnimatedList extends AnimatedVariable {
for (AnimatedVariable variable in variables)
variable.setFraction(t);
}
+ String toString() => 'AnimatedList([$variables])';
}
// This class manages a "performance" - a collection of values that change
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/animation_builder.dart » ('j') | sky/sdk/lib/widgets/animation_builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698