SizedBox.shrink constructor Null safety

const SizedBox.shrink(
  1. {Key? key,
  2. Widget? child}
)

Creates a box that will become as small as its parent allows.

Implementation

const SizedBox.shrink({ super.key, super.child })
  : width = 0.0,
    height = 0.0;