asImage
fun String.asImage(imageLoader: ImageLoader = DefaultImageLoader(), defaultValue: KalugaImage? = null): KalugaImage?
Deprecated
This feature has been deprecated. It is recommended to use Compose Multiplatform instead.
Treats this string as a resource identifier for a KalugaColor and grabs the associated KalugaImage
Return
The KalugaImage associated with the identifier represented by this String, or defaultValue if no such KalugaImage could be found.
Parameters
imageLoader
The ImageLoader used for loading the associated KalugaImage resource.
defaultValue
The KalugaImage to return if no match was found for the identifier. Defaults to null.