Expander constructor

const Expander({
  1. Key? key,
  2. Widget? leading,
  3. required Widget header,
  4. required Widget content,
  5. Widget? icon,
  6. Widget? trailing,
  7. Curve? animationCurve,
  8. Duration? animationDuration,
  9. ExpanderDirection direction = ExpanderDirection.down,
  10. bool initiallyExpanded = false,
  11. ValueChanged<bool>? onStateChanged,
  12. ButtonState<Color>? headerBackgroundColor,
  13. ExpanderShapeBuilder? headerShape,
  14. Color? contentBackgroundColor,
  15. EdgeInsetsGeometry? contentPadding = const EdgeInsets.all(16.0),
  16. ExpanderShapeBuilder? contentShape,
})

Creates a fluent-styled expander.

Implementation

const Expander({
  super.key,
  this.leading,
  required this.header,
  required this.content,
  this.icon,
  this.trailing,
  this.animationCurve,
  this.animationDuration,
  this.direction = ExpanderDirection.down,
  this.initiallyExpanded = false,
  this.onStateChanged,
  this.headerBackgroundColor,
  this.headerShape,
  this.contentBackgroundColor,
  this.contentPadding = const EdgeInsets.all(16.0),
  this.contentShape,
});