Commit dea7c347 authored by Ian Hickson's avatar Ian Hickson

Allow Tweens to lerp to null.

parent 40899eb2
...@@ -98,9 +98,7 @@ class Tween<T extends dynamic> extends Animatable<T> { ...@@ -98,9 +98,7 @@ class Tween<T extends dynamic> extends Animatable<T> {
/// This method returns `begin` and `end` when the animation values are 0.0 or 1.0, respectively. /// This method returns `begin` and `end` when the animation values are 0.0 or 1.0, respectively.
@override @override
T evaluate(Animation<double> animation) { T evaluate(Animation<double> animation) {
if (end == null) final double t = animation.value;
return begin;
double t = animation.value;
if (t == 0.0) if (t == 0.0)
return begin; return begin;
if (t == 1.0) if (t == 1.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment