onPressed property
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;
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.
final VoidCallback? onPressed;