onCollapse property

VoidCallback? onCollapse
final

The handler for SemanticsAction.collapse.

This is a request to collapse the currently focused node. For example, this action might be recognized by a dropdown.

This handler should only be set when the node is in an expanded state (i.e., expanded is true).

Implementation

final VoidCallback? onCollapse;