onPressed property

VoidCallback? onPressed
final

Callback fired when the icon is pressed.

When the node has children, it is automatically expanded/collapsed and this callback is called right after it.

Implementation

final VoidCallback? onPressed;