toKModifier

fun Modifier.toKModifier(): KModifier?

Returns the KModifier representation of this Modifier or null if this is a Java-only modifier (i.e. prefixed with JAVA_), which do not have obvious KModifier analogues.


fun Visibility.toKModifier(): KModifier?

Returns the KModifier representation of this visibility or null if this is JAVA_PACKAGE or LOCAL (which do not have obvious KModifier alternatives).