findChildren<T extends TreeData> static method

dynamic findChildren<T extends TreeData>(
  1. List<TreeVO<T>> list,
  2. TreeVO<T> treeVO
)

Implementation

static findChildren<T extends TreeData>(List<TreeVO<T>> list, TreeVO<T> treeVO) {
  for (TreeVO<T> v in list) {
    if (v.data!.pid == treeVO.data!.id) {
      treeVO.children.add(v);
      v.parent = treeVO;
    }
  }
}