W3cubDocs

/Kotlin

Setter

Platform and version requirements: JVM (1.0), JS (1.1)
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.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-mutable-property0/-setter.html