TreeRowNode class
A class representing a node in a tree row
Constructors
-
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
-
TreeRowNode.fromCells({Object? id, int? level, required List<
Widget> cells, 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}) - Creates a row from cell widgets.
-
TreeRowNode.fromValues({Object? id, int? level, required List<
Object?> values, 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}) - Creates a text row from raw values.
Properties
-
columns
→ List<
TreeColumn> -
The list of columns in the node
final
- hasChildren ↔ bool
-
Whether this node has children, including children not loaded yet.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of this row. Defaults to 51.
final
- id → Object?
-
Optional application-defined identifier for server or cache lookups and
stable row reconciliation. IDs should be unique within a table.
final
- isExpanded ↔ bool
-
Whether the node is expanded or not
getter/setter pair
- level ↔ int?
-
The level of the node in the tree
getter/setter pair
- onDoubleTap → TreeDataTableRowCallback?
-
Called when this row is double-tapped.
final
- onExpansionChanged → void Function(bool isExpanded)?
-
Called after the user expands or collapses this node.
final
- onSecondaryTap → TreeDataTableRowCallback?
-
Called when this row receives a secondary tap.
final
- onSelectedChanged → void Function(bool isExpanded)?
-
Called after this row's selected state changes.
final
- onTap → TreeDataTableRowCallback?
-
Called when this row is tapped.
final
-
rows
↔ List<
TreeRowNode> -
The list of child nodes
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectable → bool
-
Whether this row can be selected when row selection is enabled.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited