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> {
/// This method returns `begin` and `end` when the animation values are 0.0 or 1.0, respectively.
@override
T evaluate(Animation<double> animation) {
if (end == null)
return begin;
double t = animation.value;
final double t = animation.value;
if (t == 0.0)
return begin;
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