TreeNode class

Constructors

TreeNode({required String id, required String label, required IconData iconData, Color? iconColor, bool isFolder = false, bool isExpanded = false, bool isSelected = false, List<TreeNode> children = const [], dynamic data, NodeStateMode stateMode = NodeStateMode.synced})

Properties

children → List<TreeNode>
final
data ↔ dynamic
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
iconColor → Color?
final
iconData → IconData
final
id → String
final
isExpanded ↔ bool
getter/setter pair
isFolder → bool
final
isSelected ↔ bool
getter/setter pair
label → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateMode ↔ NodeStateMode
getter/setter pair

Methods

copyWith({String? id, String? label, IconData? iconData, Color? iconColor, bool? isFolder, bool? isExpanded, bool? isSelected, List<TreeNode>? children, dynamic data, NodeStateMode? stateMode}) → TreeNode
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