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

Setter

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

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 .

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 .