ExtendedWrap constructor

ExtendedWrap({
  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? textDirection,
  9. VerticalDirection verticalDirection = VerticalDirection.down,
  10. Clip clipBehavior = Clip.none,
  11. int maxLines = 1,
  12. Widget? overflowWidget,
  13. List<Widget> children = const <Widget>[],
})

Implementation

ExtendedWrap({
  Key? key,
  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,
  this.maxLines = 1,
  this.overflowWidget,
  List<Widget> children = const <Widget>[],
})  : assert(maxLines >= 1),
      super(key: key, children: [
        ...children,
        if (overflowWidget != null) overflowWidget
      ]);