RenderSignedSpacingFlex constructor

RenderSignedSpacingFlex({
  1. List<RenderBox>? children,
  2. double spacing = 0.0,
  3. Axis direction = Axis.horizontal,
  4. MainAxisSize mainAxisSize = MainAxisSize.max,
  5. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  6. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  7. TextDirection? textDirection,
  8. VerticalDirection verticalDirection = VerticalDirection.down,
  9. TextBaseline? textBaseline,
  10. Clip clipBehavior = Clip.none,
})

Creates a flex render object.

By default, the flex layout is horizontal and children are aligned to the start of the main axis and the center of the cross axis.

Implementation

RenderSignedSpacingFlex({
  List<RenderBox>? children,
  double spacing = 0.0,
  Axis direction = Axis.horizontal,
  MainAxisSize mainAxisSize = MainAxisSize.max,
  MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  TextDirection? textDirection,
  VerticalDirection verticalDirection = VerticalDirection.down,
  TextBaseline? textBaseline,
  Clip clipBehavior = Clip.none,
})  : _spacing = spacing,
      _direction = direction,
      _mainAxisAlignment = mainAxisAlignment,
      _mainAxisSize = mainAxisSize,
      _crossAxisAlignment = crossAxisAlignment,
      _textDirection = textDirection,
      _verticalDirection = verticalDirection,
      _textBaseline = textBaseline,
      _clipBehavior = clipBehavior {
  addAll(children);
}