LayoutHeader constructor

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

Constructs a LayoutHeader widget.

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

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

Implementation

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