I want to use only one Image with 3 types of src: color solid, color linear gradient, or image URL
It like that
when (type) {
Type.SOLID -> Image(...)
Type.GRADIENT -> Image(...)
Type.URL -> Image(...) // I can do this case, I use Coil for load image URL
}
How to make it? Thanks.