add

fun add(map: Map<String, T>): NodePropSource<T>

Create a NodePropSource that assigns a value for this prop to NodeTypes by name or by a predicate function.


fun add(f: (NodeType) -> T?): NodePropSource<T>

Create a NodePropSource using a function that returns a value for each NodeType.