TreeCell constructor

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

Implementation

const TreeCell({
  super.key,
  required this.value,
  required this.width,
  this.height, // Optional height
  required this.depth,
  required this.hasChildren,
  required this.isExpanded,
  this.onToggleExpand,
  required this.backgroundColor,
  required this.textColor,
  required this.borderColor,
  this.isSelected = false,
  this.isTotalRow = false,
  this.accentColor,
  this.supportsDrillDown = false,
  this.showDrillDownIcon = true,
  this.onDrillDown,
  this.isReadOnly = false,
  this.enableLineHeightAdjustment = false,
  this.highlight,
  this.highlightBorders,
  this.wordWrap = true,
});