Unverified Commit 31df1d45 authored by Chad Nehemiah's avatar Chad Nehemiah Committed by GitHub

made builder required (#51993)

parent 5b0a79db
......@@ -202,8 +202,9 @@ class LayoutBuilder extends ConstrainedLayoutBuilder<BoxConstraints> {
/// The [builder] argument must not be null.
const LayoutBuilder({
Key key,
LayoutWidgetBuilder builder,
}) : super(key: key, builder: builder);
@required LayoutWidgetBuilder builder,
}) : assert(builder != null),
super(key: key, builder: builder);
@override
LayoutWidgetBuilder get builder => super.builder;
......
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