collapse

Function

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

Action to collapse an expandable node.

Parameters

labelOptional label for this action.
actionAction to be performed when the SemanticsActions.Collapse is called.