← Docs
kotlin-stdlib / kotlin.reflect.full / withNullability

withNullability

JVM
1.1
fun KType . withNullability ( nullable : Boolean ) : KType
(source)

Returns a new type with the same classifier, arguments and annotations as the given type, and with the given nullability.

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 .