withFlexible method

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

Wraps this inside a Flexible

Implementation

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