W3cubDocs

/Kotlin

Setter

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.

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