LayoutBody constructor

LayoutBody(
  1. Widget child, {
  2. int? flexUnits,
  3. Key? key,
})

Constructs a LayoutBody widget.

child is the widget to be displayed in the body section.

flexUnits is the number of flex units assigned to the body section. If not provided, the default flex units for the body section is used.

Implementation

LayoutBody(
  this.child, {
  int? flexUnits,
  super.key,
}) : layoutFlexUnits = flexUnits ?? LayoutFlexUnits.body.flexUnits;