Widget.flex constructor Null safety
- {Key? key,
- required Axis direction,
- @Default(MainAxisAlignment.start) MainAxisAlignment mainAxisAlignment,
- @Default(MainAxisSize.max) MainAxisSize mainAxisSize,
- @Default(CrossAxisAlignment.center) CrossAxisAlignment crossAxisAlignment,
- TextDirection? textDirection,
- @Default(VerticalDirection.down) VerticalDirection verticalDirection,
- TextBaseline? textBaseline,
- @Default(Clip.none) Clip clipBehavior,
- @Default([]) List<
Widget> children}
Implementation
const factory Widget.flex({
Key? key,
required Axis direction,
@Default(MainAxisAlignment.start) MainAxisAlignment mainAxisAlignment,
@Default(MainAxisSize.max) MainAxisSize mainAxisSize,
@Default(CrossAxisAlignment.center) CrossAxisAlignment crossAxisAlignment,
TextDirection? textDirection,
@Default(VerticalDirection.down) VerticalDirection verticalDirection,
TextBaseline? textBaseline,
@Default(Clip.none) Clip clipBehavior,
@Default([]) List<Widget> children,
}) = Flex;