SizedBox.expand constructor Null safety

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({ Key? key, Widget? child })
  : width = double.infinity,
    height = double.infinity,
    super(key: key, child: child);