expansionCallback property

ExpansionPanelCallback expansionCallback
final

The callback that gets called whenever one of the expand/collapse buttons is pressed. The arguments passed to the callback are the index of the to-be-expanded panel in the list and whether the panel is currently expanded or not.

This callback is useful in order to keep track of the expanded/collapsed panels in a parent widget that may need to react to these changes.

Implementation

final ExpansionPanelCallback expansionCallback