ConstrainedLayoutBuilder<ConstraintType extends Constraints> constructor Null safety

const ConstrainedLayoutBuilder<ConstraintType extends Constraints>(
  1. {Key? key,
  2. required Widget builder(
    1. BuildContext,
    2. ConstraintType
    )}
)

Creates a widget that defers its building until layout.

The builder argument must not be null, and the returned widget should not be null.

Implementation

const ConstrainedLayoutBuilder({
  super.key,
  required this.builder,
}) : assert(builder != null);