ImageLoad

@Composable()
fun <T : Any> ImageLoad(recomposeKey: T?, executeImageRequest: suspend () -> Flow<ImageLoadState>, modifier: Modifier = Modifier, content: @Composable() (imageState: ImageLoadState) -> Unit)

A common image loading model for fetching an image asynchronously and run composable for displaying the image.

Parameters

recomposeKey

request to execute image loading asynchronously.

executeImageRequest

suspending lambda to execute an image loading request.

modifier

adjust the drawing image layout or drawing decoration of the content.

content

the image content to be loaded from executing for given states.