Flexible constructor Null safety

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

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

Implementation

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