SizedBox constructor Null safety

const SizedBox(
  1. {Key? key,
  2. double? width,
  3. double? height,
  4. Widget? child}
)

Creates a fixed size box. The width and height parameters can be null to indicate that the size of the box should not be constrained in the corresponding dimension.

Implementation

const SizedBox({ super.key, this.width, this.height, super.child });