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 / 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
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains
esc