ExpandedModifier constructor

const ExpandedModifier({
  1. Key? key,
  2. Widget? child,
  3. int? flex,
})

Creates a widget that expands a child of a Row, Column, or Flex so that the child fills the available space along the flex widget's main axis.

Implementation

const ExpandedModifier({
  super.key,
  super.child,
  int? flex,
}) : super(fit: FlexFit.tight, flex: flex ?? 1);