ExpansionPanelList constructor
- Key? key,
- List<
ExpansionPanel> children = const <ExpansionPanel>[], - ExpansionPanelCallback? expansionCallback,
- Duration animationDuration = kThemeAnimationDuration,
- EdgeInsets expandedHeaderPadding = _kPanelHeaderExpandedDefaultPadding,
- Color? dividerColor,
- double elevation = 2,
- Color? expandIconColor,
- double materialGapSize = 16.0,
Creates an expansion panel list widget. The expansionCallback
is
triggered when an expansion panel expand/collapse button is pushed.
Implementation
const ExpansionPanelList({
super.key,
this.children = const <ExpansionPanel>[],
this.expansionCallback,
this.animationDuration = kThemeAnimationDuration,
this.expandedHeaderPadding = _kPanelHeaderExpandedDefaultPadding,
this.dividerColor,
this.elevation = 2,
this.expandIconColor,
this.materialGapSize = 16.0,
}) : _allowOnlyOnePanelOpen = false,
initialOpenPanelValue = null;