v1.7.0
  • Solutions
    • Multiplatform Mobile
    • Multiplatform for other platforms
    • Server-side
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← 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
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains
esc