flex method

Flex flex({
  1. Key? key,
  2. required Axis direction,
  3. MainAxisAlignment maa = MainAxisAlignment.start,
  4. MainAxisSize mas = MainAxisSize.max,
  5. CrossAxisAlignment caa = CrossAxisAlignment.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,
  MainAxisAlignment maa = MainAxisAlignment.start,
  MainAxisSize mas = MainAxisSize.max,
  CrossAxisAlignment caa = CrossAxisAlignment.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,
    );