isolated

fun Drawer.isolated(function: Drawer.() -> Unit)(source)

Executes a given function within an isolated context where transforms and styles are managed. Ensures that the applied transforms and styles are reverted after the function execution, maintaining isolation for the block of code.

Parameters

function

A lambda function that operates within the isolated drawing context.

See also