Flexible constructor

const Flexible(
  1. {Key? key,
  2. int flex = 1,
  3. FlexFit fit = FlexFit.loose,
  4. required Widget child}
)

Creates a widget that controls how a child of a Row, Column, or Flex flexes.

Implementation

const Flexible({
  super.key,
  this.flex = 1,
  this.fit = FlexFit.loose,
  required super.child,
});