Platform and version requirements: JVM (1.0)
abstract val isOptional: Boolean

true if this parameter is optional and can be omitted when making a call via KCallable.callBy, or false otherwise.

A parameter is optional in any of the two cases:

  1. The default value is provided at the declaration of this parameter.
  2. The parameter is declared in a member function and one of the corresponding parameters in the super functions is optional.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.