🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

collapse

Action to collapse an expandable node.

collapse

Source set: Common
public fun SemanticsPropertyReceiver.collapse(
    label: String? = null,
    action: (() -> Boolean)?,
): Unit

Action to collapse an expandable node.

Parameters

label Optional label for this action.
action Action to be performed when the SemanticsActions.Collapse is called.