← Docs
kotlin-stdlib / kotlin.reflect / KMutableProperty1 / Setter

Setter

JVM
1.0
interface Setter < T , V > :
KMutableProperty.Setter < V > ,
( T , V ) -> Unit

(source)

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 .

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .