CustomSingleChildLayout constructor Null safety

const CustomSingleChildLayout(
  1. {Key? key,
  2. required SingleChildLayoutDelegate delegate,
  3. Widget? child}
)

Creates a custom single child layout.

The delegate argument must not be null.

Implementation

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