const
Widget.wrap(- {Key? key,
- @Default(Axis.horizontal) Axis direction,
- @Default(WrapAlignment.start) WrapAlignment alignment,
- @Default(0.0) double spacing,
- @Default(WrapAlignment.start) WrapAlignment runAlignment,
- @Default(0.0) double runSpacing,
- @Default(WrapCrossAlignment.start) WrapCrossAlignment crossAxisAlignment,
- TextDirection? textDirection,
- @Default(VerticalDirection.down) VerticalDirection verticalDirection,
- @Default(Clip.none) Clip clipBehavior,
- @Default([]) List<Widget> children}
)
Implementation
const factory Widget.wrap({
Key? key,
@Default(Axis.horizontal) Axis direction,
@Default(WrapAlignment.start) WrapAlignment alignment,
@Default(0.0) double spacing,
@Default(WrapAlignment.start) WrapAlignment runAlignment,
@Default(0.0) double runSpacing,
@Default(WrapCrossAlignment.start) WrapCrossAlignment crossAxisAlignment,
TextDirection? textDirection,
@Default(VerticalDirection.down) VerticalDirection verticalDirection,
@Default(Clip.none) Clip clipBehavior,
@Default([]) List<Widget> children,
}) = Wrap;