ExpandableListItem constructor
const
ExpandableListItem({
- Key? key,
- required ExpansionParameters params,
- bool alwaysBuildBody = true,
- double expandedMargin = 12,
- BorderSide cardSide = BorderSide.none,
- Radius cardRadius = const Radius.circular(4),
- Color? cardColor,
- Color? cardShadowColor,
- Color? cardSurfaceTintColor,
- double? cardElevation,
- Clip? cardClipBehavior,
- Duration duration = kThemeAnimationDuration,
- required Widget header,
- required Widget body,
Implementation
const ExpandableListItem({
super.key,
required this.params,
this.alwaysBuildBody = true,
this.expandedMargin = 12,
this.cardSide = BorderSide.none,
this.cardRadius = const Radius.circular(4),
this.cardColor,
this.cardShadowColor,
this.cardSurfaceTintColor,
this.cardElevation,
this.cardClipBehavior,
this.duration = kThemeAnimationDuration,
required this.header,
required this.body,
}) : assert(expandedMargin >= 0, 'margin cannot be negative!');