Expander constructor

const Expander({
  1. required Component header,
  2. required Component child,
  3. bool initiallyExpanded = false,
  4. void onExpansionChanged(
    1. bool expanded
    )?,
  5. Component? leading,
  6. bool showIcon = true,
  7. EdgeInsets? contentPadding,
  8. bool maintainState = true,
  9. Key? key,
})

Implementation

const Expander({
  required this.header,
  required this.child,
  this.initiallyExpanded = false,
  this.onExpansionChanged,
  this.leading,
  this.showIcon = true,
  this.contentPadding,
  this.maintainState = true,
  super.key,
});