withCanvas

inline fun DrawContext.withCanvas(block: Canvas.() -> Unit)

Calls the specified function block with DrawContext.canvas as its receiver.