SizedBoxModifier.shrink constructor

const SizedBoxModifier.shrink({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
})

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

Implementation

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