flexible method
Makes the current widget flexible.
flex
determines the proportion of space to fill. Defaults to 1.
fit
determines how the child fills the available space. Defaults to FlexFit.loose.
Returns a Flexible widget with the current widget as its child.
Implementation
Flexible flexible([int flex = 1, FlexFit fit = FlexFit.loose]) =>
Flexible(flex: flex, fit: fit, child: this);