onPressed property

VoidCallback? onPressed
final

Callback invoked when the tree item is pressed/clicked.

Type: VoidCallback?. Called for single-click interactions. If null, the item will not respond to press gestures.

Implementation

final VoidCallback? onPressed;