Start native apps faster with the Composables CLI ->
Class

CanvasOp.DrawConditionally

Represents a conditional drawing block (drawConditionally).

Source set: Android
class DrawConditionally(
        val condition: RemoteBoolean,
        val childSpan: CanvasOperationBuffer.Span,
        val action: (RemoteComposeWriter, RemoteComposeCreationState) -> Unit,
    ) : CanvasOp()

Represents a conditional drawing block (drawConditionally).

Typically childSpan will be a CanvasOperationBuffer.Span, which if hasChildCommands will return false if empty.

Last updated: