Hi, I'm having trouble with properties in
expect value
classes.
I'm trying to create a multiplatform
Color
class, backed by Compose's Color class in the jvm target.
// android module
actual typealias Color = androidx.compose.ui.graphics.Color
Compose
Color
class contains getter for color components.
// Compose's Color class
@kotlin.jvm.JvmInline
value class Color(val value: ULong) {
val red: Float
get() {
...
}
}
I would like to put these getters into my expected
Color
class and can't seem to find the correct syntax that would allow me to do it (see the attached image).