Widget.constrainedBox constructor Null safety

const Widget.constrainedBox(
  1. {Key? key,
  2. required BoxConstraints constraints,
  3. Widget? child}
)

Implementation

const factory Widget.constrainedBox({
  Key? key,
  required BoxConstraints constraints,
  Widget? child,
}) = ConstrainedBox;