toWrap method

Widget toWrap({
  1. Key? key,
  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? textDirectionFactor,
  9. VerticalDirection verticalDirection = VerticalDirection.down,
  10. Clip clipBehavior = Clip.none,
})

A widget that displays its children in multiple horizontal or vertical runs. Like a column that wraps

Implementation

Widget toWrap({
  Key? key,
  Axis direction = Axis.horizontal,
  WrapAlignment alignment = WrapAlignment.start,
  double spacing = 0.0,
  WrapAlignment runAlignment = WrapAlignment.start,
  double runSpacing = 0.0,
  WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  TextDirection? textDirectionFactor,
  VerticalDirection verticalDirection = VerticalDirection.down,
  Clip clipBehavior = Clip.none,
}) {
  return Wrap(
    key: key,
    direction: direction,
    alignment: alignment,
    spacing: spacing,
    runAlignment: runAlignment,
    runSpacing: runSpacing,
    crossAxisAlignment: crossAxisAlignment,
    textDirection: textDirectionFactor,
    clipBehavior: clipBehavior,
    verticalDirection: verticalDirection,
    children: this,
  );
}