| 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 f4179e95ac770b515ba3487261be9e1cefff3b19..e03278ff427a36a22ab238ac272ee3a33c29acfb 100644
|
| --- a/sky/sdk/lib/animation/animation_performance.dart
|
| +++ b/sky/sdk/lib/animation/animation_performance.dart
|
| @@ -13,16 +13,18 @@ abstract class AnimatedVariable {
|
|
|
| class AnimatedType<T extends dynamic> extends AnimatedVariable {
|
| T value;
|
| - final T begin, end;
|
| + T begin, end;
|
| final Curve curve;
|
|
|
| - AnimatedType(this.begin, this.end, {this.curve: linear}) {
|
| + AnimatedType(this.begin, {this.end, this.curve: linear}) {
|
| value = begin;
|
| }
|
|
|
| void setFraction(double t) {
|
| - // TODO(mpcomplete): Reverse the timeline and curve.
|
| - value = begin + (end - begin) * curve.transform(t);
|
| + if (end != null) {
|
| + // TODO(mpcomplete): Reverse the timeline and curve.
|
| + value = begin + (end - begin) * curve.transform(t);
|
| + }
|
| }
|
| }
|
|
|
|
|