Commit f07a0c98 authored by Ian Hickson's avatar Ian Hickson

Fix crazy assertion.

Not sure what I was doing when I wrote this assertion, but I'm pretty
sure it's wrong. I'm guessing the change here is what I actually meant
to write.
parent 306a364f
......@@ -79,8 +79,10 @@ class AnimatedContainer extends StatefulComponent {
}) : super(key: key) {
assert(margin == null || margin.isNonNegative);
assert(padding == null || padding.isNonNegative);
assert(decoration == null || decoration.debugAssertValid());
assert(foregroundDecoration == null || foregroundDecoration.debugAssertValid());
assert(curve != null);
assert(duration != null || decoration.debugAssertValid());
assert(duration != null);
}
final Widget child;
......
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