Setter

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

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

Can be used as a function that takes the receiver and the new property value as arguments and returns Unit.