CustomSingleChildLayout({Key key, @required SingleChildLayoutDelegate delegate, Widget child })

Creates a custom single child layout.

The delegate argument must not be null.

Source

CustomSingleChildLayout({
  Key key,
  @required this.delegate,
  Widget child
}) : super(key: key, child: child) {
  assert(delegate != null);
}