toTreeVOList<T extends TreeData> static method
Implementation
static List<TreeVO<T>> toTreeVOList<T extends TreeData>(List<T> data) {
List<TreeVO<T>> result = [];
data.forEach((element) {
addTreeData(result, element);
});
return result.where((element) => element.data!.pid == null).toList();
}