drawWithContent

Functions summary

Modifier

Creates a DrawModifier that allows the developer to draw before or after the layout's contents.

Cmn

Functions

Modifier.drawWithContent

fun Modifier.drawWithContent(onDraw: ContentDrawScope.() -> Unit): Modifier

Creates a DrawModifier that allows the developer to draw before or after the layout's contents. It also allows the modifier to adjust the layout's canvas.