onExpansionChanged property
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.
Implementation
final ValueChanged<bool>? onExpansionChanged;