drawBehind

Draws onDraw into the component's area before the content declared after this modifier. The block draws on its own copy of the graphics, so nothing it sets on them affects the content. The block draws with DefaultCanvasRenderingHints unless it sets its own. Use drawWithContent to transform or clip the content.

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.