Expander constructor
const
Expander({
- Key? key,
- Widget? leading,
- required Widget header,
- required Widget content,
- Widget? icon,
- Widget? trailing,
- Curve? animationCurve,
- Duration? animationDuration,
- ExpanderDirection direction = ExpanderDirection.down,
- bool initiallyExpanded = false,
- ValueChanged<
bool> ? onStateChanged, - ButtonState<
Color> ? headerBackgroundColor, - ExpanderShapeBuilder? headerShape,
- Color? contentBackgroundColor,
- EdgeInsetsGeometry? contentPadding = const EdgeInsets.all(16.0),
- 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,
});