W3cubDocs

/Kotlin

Setter

Platform and version requirements: JVM (1.0)
interface Setter<D, E, V> : 
    KMutableProperty.Setter<V>, 
    (D, E, V) -> Unit

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

Can be used as a function that takes an argument of type D (the first receiver), an argument of type E (the second receiver), and the new property value and returns Unit.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-mutable-property2/-setter.html