Type TreeItem
type TreeItem struct {
ID ui.ID
DisclosureID ui.ID
Label string
Depth uint8
Branch bool
Expanded bool
Selected bool
Disabled bool
}TreeItem describes one already-flattened visible tree row. Branches use a distinct DisclosureID so expanding a branch never also activates its row. Depth is clamped to 31 to keep malformed input from pushing content away.