canToggleExpansion property

bool canToggleExpansion
final

Whether node can have its expansion state toggled when it is being hovered by another dragging tree node.

This is checked after toggleExpansionDelay has ellapsed but right before TreeController.toggleExpansion is called, making it possible to halt the toggle operation while the timer is running, without stopping it.

Defaults to true.

Implementation

final bool canToggleExpansion;