toWrap method

Widget toWrap({
  1. Key? key,
  2. Axis direction = Axis.horizontal,
  3. WrapAlignment alignment = WrapAlignment.start,
  4. WrapAlignment runAlignment = WrapAlignment.start,
  5. double spacing = 0.0,
  6. double runSpacing = 0.0,
  7. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  8. TextDirection? textDirection,
  9. VerticalDirection verticalDirection = VerticalDirection.down,
  10. Clip clipBehavior = Clip.none,
})

转 Wrap

Implementation

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