ExpansionPanel constructor

ExpansionPanel({
  1. required ExpansionPanelHeaderBuilder headerBuilder,
  2. required Widget body,
  3. bool isExpanded = false,
  4. bool canTapOnHeader = false,
  5. Color? backgroundColor,
  6. Color? splashColor,
  7. Color? highlightColor,
})

Creates an expansion panel to be used as a child for ExpansionPanelList. See ExpansionPanelList for an example on how to use this widget.

Implementation

ExpansionPanel({
  required this.headerBuilder,
  required this.body,
  this.isExpanded = false,
  this.canTapOnHeader = false,
  this.backgroundColor,
  this.splashColor,
  this.highlightColor,
});