flexible method

Flexible flexible({
  1. int flex = 1,
  2. FlexFit fit = FlexFit.loose,
  3. Key? key,
})

Wraps this widget in a Flexible.

Implementation

Flexible flexible({int flex = 1, FlexFit fit = FlexFit.loose, Key? key}) {
  return Flexible(
    key: key,
    flex: flex,
    fit: fit,
    child: this,
  );
}