onExpanded property
A callback function that is invoked whenever the expanded
property changes.
This can be used to update the UI of widgets that are listening to changes
in the spoiler's visibility state. The callback receives the new visibility
state (true
for expanded, false
for collapsed).
Implementation
final ValueSetter? onExpanded;