Index: sky/framework/animation/generator.dart |
diff --git a/sky/framework/animation/generator.dart b/sky/framework/animation/generator.dart |
index 0b5055050a98bcf8d1ddf73bfd5381dafe0cb2e7..9b83d9fb4f6fa27b69d03537e31a27e7c39d5e58 100644 |
--- a/sky/framework/animation/generator.dart |
+++ b/sky/framework/animation/generator.dart |
@@ -66,6 +66,7 @@ class AnimationGenerator extends FrameGenerator { |
this.curve: linear, |
Function onDone |
}):super(onDone: onDone) { |
+ assert(duration > 0); |
double startTime = 0.0; |
_stream = super.onTick.map((timeStamp) { |
if (startTime == 0.0) |