RenderFlex constructor
RenderFlex({
- required Axis direction,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisSize mainAxisSize = MainAxisSize.max,
Creates a RenderFlex with the given layout parameters.
Implementation
RenderFlex({
required this.direction,
this.mainAxisAlignment = MainAxisAlignment.start,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.mainAxisSize = MainAxisSize.max,
});