RenderWrap constructor

RenderWrap({
  1. List<RenderBox>? children,
  2. Axis direction = Axis.horizontal,
  3. WrapAlignment alignment = WrapAlignment.start,
  4. double spacing = 0.0,
  5. WrapAlignment runAlignment = WrapAlignment.start,
  6. double runSpacing = 0.0,
  7. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  8. TextDirection? textDirection,
  9. VerticalDirection verticalDirection = VerticalDirection.down,
  10. Clip clipBehavior = Clip.none,
})

Creates a wrap render object.

By default, the wrap layout is horizontal and both the children and the runs are aligned to the start.

Implementation

RenderWrap({
  List<RenderBox>? children,
  this._direction = Axis.horizontal,
  this._alignment = WrapAlignment.start,
  this._spacing = 0.0,
  this._runAlignment = WrapAlignment.start,
  this._runSpacing = 0.0,
  this._crossAxisAlignment = WrapCrossAlignment.start,
  this._textDirection,
  this._verticalDirection = VerticalDirection.down,
  this._clipBehavior = Clip.none,
}) {
  addAll(children);
}