sooxie / list_treeview

A treeview for Flutter. Based on the listview.
MIT License
64 stars 23 forks source link

初始化数据的时候能否定义节点的展开属性呢? #8

Closed justdoitgo closed 2 years ago

justdoitgo commented 3 years ago

比如 TreeNodeData({this.label, this.id,this.oid, bool mesExpand = false}){ print('mesExpand = ${mesExpand}'); super.isExpand=mesExpand; }

justdoitgo commented 3 years ago

是否有方法可以获取所有选中的节点呢?

sooxie commented 3 years ago

/// Select itself and all child nodes _controller.selectAllChild(item);

用这个方法就可以