Lukáš Kúšik
09/30/2022, 9:12 AMexpect 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).Tijl
09/30/2022, 9:31 AMred, blue etcDerek Ellis
09/30/2022, 4:46 PMColor extend that interface. The actual definitions would then have to implement them.