allowParentSelect property
Determines whether the user can select a parent node. If false, tapping the parent will expand or collapse the node. If true, the node will be selected and the use has to use the expander to expand or collapse the node.
Implementation
final bool allowParentSelect;