CJTSTitleCommonValueTableViewCell constructor

const CJTSTitleCommonValueTableViewCell({
  1. Key? key,
  2. double? height,
  3. BoxConstraints? constraints,
  4. double? leftRightPadding,
  5. Color? color,
  6. double? leftMaxWidth,
  7. double? rightMaxWidth,
  8. double? leftRightSpacing,
  9. ImageProvider<Object>? imageProvider,
  10. double? imageWith,
  11. double? imageTitleSpace,
  12. required String title,
  13. String? titlePrompt,
  14. int? titlePromptMaxLines,
  15. double? titlePromptFontSize,
  16. required Widget? valueWidgetBuilder(
    1. BuildContext context, {
    2. required bool canExpanded,
    }),
  17. CJTSTableViewCellArrowImageType? arrowImageType = CJTSTableViewCellArrowImageType.none,
  18. int? section,
  19. int? row,
  20. ClickCellCallback? onTapCell,
  21. ClickCellCallback? onDoubleTapCell,
  22. ClickCellCallback? onLongPressCell,
})

Implementation

const CJTSTitleCommonValueTableViewCell({
  Key? key,
  this.height, // cell 的高度(内部已限制最小高度为44,要更改请设置 constraints)
  this.constraints,
  this.leftRightPadding,
  this.color,
  this.leftMaxWidth, // 限制左侧的最大宽度(左右两侧都未设置最大宽度时候,默认左边给完,剩下全给右边)
  this.rightMaxWidth, // 限制右侧的最大宽度(左右两侧都未设置最大宽度时候,默认左边给完,剩下全给右边)
  this.leftRightSpacing, // 左右两侧视图的间距(默认未未设置时候为0)
  this.imageProvider,
  this.imageWith,
  this.imageTitleSpace,
  required this.title,
  this.titlePrompt,
  this.titlePromptMaxLines,
  this.titlePromptFontSize,
  required this.valueWidgetBuilder,
  this.arrowImageType = CJTSTableViewCellArrowImageType.none,
  this.section,
  this.row,
  this.onTapCell,
  this.onDoubleTapCell,
  this.onLongPressCell,
}) : //assert(leftMaxWidth > 0 || rightMaxWidth > 0),
      super(key: key);