EnhanceExpansionPanelList constructor

const EnhanceExpansionPanelList({
  1. Key? key,
  2. List<EnhanceExpansionPanel> children = const <EnhanceExpansionPanel>[],
  3. ExpansionPanelCallback? expansionCallback,
  4. Duration animationDuration = kThemeAnimationDuration,
  5. EdgeInsets expandedHeaderPadding = _kPanelHeaderExpandedDefaultPadding,
  6. Color? dividerColor,
  7. double elevation = 2,
  8. double materialGapSize = 16.0,
})

Creates an expansion panel list widget. The expansionCallback is triggered when an expansion panel expand/collapse button is pushed.

The children and animationDuration arguments must not be null.

Implementation

const EnhanceExpansionPanelList({
  Key? key,
  this.children = const <EnhanceExpansionPanel>[],
  this.expansionCallback,
  this.animationDuration = kThemeAnimationDuration,
  this.expandedHeaderPadding = _kPanelHeaderExpandedDefaultPadding,
  this.dividerColor,
  this.elevation = 2,
  this.materialGapSize = 16.0,
}) : _allowOnlyOnePanelOpen = false,
      initialOpenPanelValue = null,
      super(key: key);