toggle menu
doodle
0.10.3
common
switch theme
search in API
controls
/
io.nacular.doodle.controls.tree
/
NodeBuilder
Node
Builder
class
NodeBuilder
<
T
>
(
var
value
:
T
,
val
children
:
MutableList
<
NodeBuilder
<
T
>
>
=
mutableListOf()
)
(
source
)
Created by Nicholas Eddy on 3/27/18.
Members
Constructors
Node
Builder
Link copied to clipboard
constructor
(
value
:
T
,
children
:
MutableList
<
NodeBuilder
<
T
>
>
=
mutableListOf()
)
Properties
children
Link copied to clipboard
val
children
:
MutableList
<
NodeBuilder
<
T
>
>
value
Link copied to clipboard
var
value
:
T
Functions
node
Link copied to clipboard
fun
node
(
value
:
T
,
block
:
NodeBuilder
<
T
>
.
(
)
->
Unit
=
{}
)
:
NodeBuilder
<
T
>
tree
Node
Link copied to clipboard
fun
treeNode
(
)
:
TreeNode
<
T
>