TreeRowNode constructor
TreeRowNode({
- Object? id,
- int? level,
- List<
TreeRowNode> rows = const [], - bool? hasChildren,
- bool isExpanded = false,
- double height = 51,
- void onExpansionChanged(
- bool isExpanded
- bool selectable = true,
- void onSelectedChanged(
- bool isExpanded
- TreeDataTableRowCallback? onTap,
- TreeDataTableRowCallback? onDoubleTap,
- TreeDataTableRowCallback? onSecondaryTap,
- 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');