getSelectedItems<K> static method
Implementation
static List<K> getSelectedItems<K>(List<TreeNode<K>> nodes) {
return nodes
.whereType<TreeItem<K>>()
.where((node) => node.selected)
.map((node) => node.data)
.toList();
}