flex method
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,
);
}