flexible method

Widget flexible({
  1. dynamic flex = 1,
  2. FlexFit? fit,
})

add Flexible to parent widget

Implementation

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