expanded method
Makes this widget expanded within a Flex parent (Row/Column).
Parameters:
flex(int, default: 1): Flex factor for space distribution.
Returns: Widget — expanded widget.
Implementation
Widget expanded({int flex = 1}) {
return Expanded(
flex: flex,
child: this,
);
}