XItem constructor

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

Implementation

XItem({
  Key? key,
  this.onTap,
  this.width,
  this.decorationForListContainer,
  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);