TreeRowNode constructor

TreeRowNode({
  1. Object? id,
  2. int? level,
  3. List<TreeRowNode> rows = const [],
  4. bool? hasChildren,
  5. bool isExpanded = false,
  6. double height = 51,
  7. void onExpansionChanged(
    1. bool isExpanded
    )?,
  8. bool selectable = true,
  9. void onSelectedChanged(
    1. bool isExpanded
    )?,
  10. TreeDataTableRowCallback? onTap,
  11. TreeDataTableRowCallback? onDoubleTap,
  12. TreeDataTableRowCallback? onSecondaryTap,
  13. required List<TreeColumn> columns,
})

Creates a new instance of TreeRowNode

Implementation

TreeRowNode({
  this.id,
  this.level,
  this.rows = const [],
  bool? hasChildren,
  this.isExpanded = false,
  this.height = 51,
  this.onExpansionChanged,
  this.selectable = true,
  this.onSelectedChanged,
  this.onTap,
  this.onDoubleTap,
  this.onSecondaryTap,
  required this.columns,
})  : hasChildren = hasChildren ?? rows.isNotEmpty,
      assert(columns.isNotEmpty, 'Columns must not be empty'),
      assert(height > 0, 'height must be greater than zero');