Commit cc2f8fee authored by Adam Barth's avatar Adam Barth

Add asserts to DefaultTextStyle.inherit (#3844)

The context and child arguments are required.  We should assert that
they're non-null.

Fixes #3843
parent f0a8ee2a
......@@ -1994,6 +1994,8 @@ class DefaultTextStyle extends InheritedWidget {
TextOverflow overflow,
Widget child
}) {
assert(context != null);
assert(child != null);
DefaultTextStyle parent = DefaultTextStyle.of(context);
return new DefaultTextStyle(
key: key,
......
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