flex method

  1. @widgetFactory
Widget flex(
  1. int flex, {
  2. FlexFit fit = FlexFit.loose,
})

Specifies how this widget is supposed to fill the available space in the main axis within its parent Row, Column, or Flex widget.

Implementation

@widgetFactory
Widget flex(int flex, {FlexFit fit = FlexFit.loose}) {
  return Flexible(
    flex: flex,
    fit: fit,
    child: this,
  );
}