flexible method

Flexible flexible([
  1. int flex = 1,
  2. FlexFit fit = FlexFit.loose
])

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);