TreeNode<T> class

树节点数据模型

Constructors

TreeNode({required String id, required T data, List<TreeNode<T>>? children, bool isExpanded = false, bool isSelected = false, int level = 0, bool selectable = true, bool? isLeaf, bool isLoading = false})
TreeNode.fromMap(dynamic map, {T dataParser(dynamic)?})
factory

Properties

children List<TreeNode<T>>
final
data → T
final
hasChildren bool
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
final
isExpanded bool
getter/setter pair
isLeaf bool?
final
isLoading bool
getter/setter pair
isSelected bool
getter/setter pair
level int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectable bool
final
selectState bool?
获取复选框状态(支持三态)
no setter

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