BaseTreeModel class abstract

Constructors

BaseTreeModel({String? id, List<BaseTreeModel>? children})

Properties

children List<BaseTreeModel>?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLeafTagModelByLeafTagId(String? leafTagId) BaseTreeModel?
递归遍历:根据叶子节点id,获取选中的叶子节点信息 (常用于:判断这个树是否被选中,如果有选中该树的任意节点则①显示高亮及②对应的信息。eg场景:将一堆标签树)
getLeafTagModelPathByLeafTagId(String leafTagId) List<int>?
递归遍历:根据叶子节点id,获取选中的标签节点的完整路径信息(暂时没发生什么用处)
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