onExpansionChanged property
final
Called when the tile expands or collapses.
When the tile starts expanding, this function is called with the value true. When the tile starts collapsing, this function is called with the value false.
Instead of providing this property, consider adding this callback as a listener to a provided controller.
Implementation
final ValueChanged<bool>? onExpansionChanged;