flex method

Flex flex({
  1. Key? key,
  2. required Axis direction,
  3. MAAlign maa = MAAlign.start,
  4. MainAxisSize mas = MainAxisSize.max,
  5. CAAlign caa = CAAlign.center,
  6. TextDirection? textDirection,
  7. VerticalDirection vd = VerticalDirection.down,
  8. TextBaseline? textBaseline,
  9. Clip clip = Clip.none,
})

see Flex

Implementation

Flex flex(
        {Key? key,
        required Axis direction,
        MAAlign maa = MAAlign.start,
        MainAxisSize mas = MainAxisSize.max,
        CAAlign caa = CAAlign.center,
        TextDirection? textDirection,
        VerticalDirection vd = VerticalDirection.down,
        TextBaseline? textBaseline,
        Clip clip = Clip.none}) =>
    Flex(
      key: key,
      direction: direction,
      mainAxisAlignment: maa = maa,
      mainAxisSize: mas = mas,
      crossAxisAlignment: caa,
      textDirection: textDirection,
      verticalDirection: vd,
      textBaseline: textBaseline,
      clipBehavior: clip,
      children: this,
    );