XItem constructor

XItem({
  1. Key? key,
  2. dynamic onTap()?,
  3. double? width,
  4. double? wrapSpacing,
  5. double? wrapWidth,
  6. double? wrapHeight,
  7. double? wrapRunSpacing,
  8. Axis? wrapDirection,
  9. AlignmentGeometry? titleAlignOnTop,
  10. MainAxisAlignment? mainAxisAlignmentXItem,
  11. Widget? titleWidget,
  12. CrossAxisAlignment? crossAxisAlignmentXItem,
  13. double? heightOfWidgetForEmptyList,
  14. Color? colorCard,
  15. TextStyle? titleStyle,
  16. AlignmentGeometry? titleAlignOnLeft,
  17. Color? titleColor,
  18. Color? titleBorderColor,
  19. String? title = "",
  20. double titleContainerWidth = 150,
  21. double? titleContainerHeight,
  22. List<Widget>? children,
  23. CrossAxisAlignment? childrensCrossAxisAlignment,
  24. bool titleOnTop = false,
  25. TextAlign titleTextAlign = TextAlign.center,
  26. Color? titleBackGroundColor,
  27. double? titleWidthBorder,
  28. double? height,
  29. BoxConstraints? constraintsOfXItem,
})

Implementation

XItem({
  Key? key,
  this.onTap,
  this.width,
  this.wrapSpacing,
  this.wrapWidth,
  this.wrapHeight,
  this.wrapRunSpacing,
  this.wrapDirection,
  this.titleAlignOnTop,
  this.mainAxisAlignmentXItem,
  this.titleWidget,
  this.crossAxisAlignmentXItem,
  this.heightOfWidgetForEmptyList,
  this.colorCard,
  this.titleStyle,
  this.titleAlignOnLeft,
  // this.visibleBottomBorderOfCard__ = false,
  this.titleColor,
  this.titleBorderColor,
  this.title = "",
  this.titleContainerWidth = 150,
  this.titleContainerHeight,
  this.children,
  this.childrensCrossAxisAlignment,
  this.titleOnTop = false,
  this.titleTextAlign = TextAlign.center,
  this.titleBackGroundColor,
  this.titleWidthBorder,
  double? height,
  BoxConstraints? constraintsOfXItem,
})  : constraintsOfXItem = (width != null || height != null) ? constraintsOfXItem?.tighten(width: width, height: height) ?? BoxConstraints.tightFor(width: width, height: height) : constraintsOfXItem,
      super(key: key);