Setter

JVM
JS
1.0
interface Setter<R> : Setter<R>, (R) -> Unit

Setter of the property is a set method declared alongside the property.

Can be used as a function that takes new property value as an argument and returns Unit.