Widget.wrap constructor Null safety

const Widget.wrap(
  1. {Key? key,
  2. @Default(Axis.horizontal) Axis direction,
  3. @Default(WrapAlignment.start) WrapAlignment alignment,
  4. @Default(0.0) double spacing,
  5. @Default(WrapAlignment.start) WrapAlignment runAlignment,
  6. @Default(0.0) double runSpacing,
  7. @Default(WrapCrossAlignment.start) WrapCrossAlignment crossAxisAlignment,
  8. TextDirection? textDirection,
  9. @Default(VerticalDirection.down) VerticalDirection verticalDirection,
  10. @Default(Clip.none) Clip clipBehavior,
  11. @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;