TextCell constructor

const TextCell({
  1. Key? key,
  2. required dynamic value,
  3. required double width,
  4. double? height,
  5. TextAlign alignment = TextAlign.left,
  6. required Color backgroundColor,
  7. required Color textColor,
  8. required Color borderColor,
  9. bool isSelected = false,
  10. bool isTotalRow = false,
  11. Color? accentColor,
  12. bool supportsDrillDown = false,
  13. bool showDrillDownIcon = true,
  14. bool isReadOnly = false,
  15. bool enableLineHeightAdjustment = false,
  16. VoidCallback? onDrillDown,
  17. bool isFirstColumn = false,
  18. CellHighlightConfig? highlight,
  19. CellBorders? highlightBorders,
  20. double horizontalPadding = 12.0,
  21. bool wordWrap = true,
})

Implementation

const TextCell({
  super.key,
  required this.value,
  required this.width,
  this.height, // Optional height
  this.alignment = TextAlign.left,
  required this.backgroundColor,
  required this.textColor,
  required this.borderColor,
  this.isSelected = false,
  this.isTotalRow = false,
  this.accentColor,
  this.supportsDrillDown = false,
  this.showDrillDownIcon = true,
  this.isReadOnly = false,
  this.enableLineHeightAdjustment = false,
  this.onDrillDown,
  this.isFirstColumn = false,
  this.highlight,
  this.highlightBorders,
  this.horizontalPadding = 12.0,
  this.wordWrap = true,
});