RenderFlex constructor

RenderFlex({
  1. required Axis direction,
  2. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  3. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  4. 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,
});