SizedBoxModifier.expand constructor

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

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

Implementation

const SizedBoxModifier.expand({
  super.key,
  super.child,
  super.modifierKey,
})  : width = double.infinity,
      height = double.infinity;