onExpand property
Callback invoked when the expand/collapse state should change.
Type: ValueChanged<bool>?
. Called with the desired expansion state
when the user interacts with expand controls or uses keyboard shortcuts.
Implementation
final ValueChanged<bool>? onExpand;