Skip to content

TreeNode

class TreeNode<K : Any, V>

One node built by tree. data is the caller's own arbitrary payload. children/parents hold other TreeNodes directly (not ids) - use TreeRegistry.get to look one up by id later. data/children/parents are genuine Compose state, so mutating any of them after tree returns recomposes NodeTreeView automatically.

Properties

children

data

var data: V

id

val id: K

parents