drawBehind

Draws onDraw into the component's area before the content declared after this modifier. A shortcut for a DrawModifierNode whose ContentDrawScope.drawContent runs after the block.

Snapshot state read in onDraw repaints the component when it changes. The component must paint through Decoratable, as every drawing modifier does.

Return

this chain with the drawing block declared on it.

Parameters

onDraw

the drawing block, called on the event dispatch thread with a DrawScope receiver.