flexible method

Widget flexible({
  1. int flex = 1,
  2. FlexFit fit = FlexFit.loose,
  3. Key? key,
})

Controls how the child of a Row, Column, or Flex flexes.

Implementation

Widget flexible({
  int flex = 1,
  FlexFit fit = FlexFit.loose,
  Key? key,
}) {
  return Flexible(
    key: key,
    flex: flex,
    fit: fit,
    child: this,
  );
}