toValue

fun toValue(    show: Boolean,     result: <Error class: unknown class><out <Error class: unknown class>>? = definedExternally): <Error class: unknown class><out <Error class: unknown class>>(source)

Converts a boolean show to a typed array that can be used to assign a show attribute.

const attributes = primitive.getGeometryInstanceAttributes('an id');
attributes.show = ShowGeometryInstanceAttribute.toValue(true, attributes.show);

Return

The modified result parameter or a new instance if result was undefined.

Parameters

show

The show value.

result

The array to store the result in, if undefined a new instance will be created.

See also