SizedBox.expand constructor

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

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

Implementation

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