ExpandableListItem constructor

const ExpandableListItem({
  1. Key? key,
  2. required ExpansionParameters params,
  3. bool alwaysBuildBody = true,
  4. double expandedMargin = 12,
  5. BorderSide cardSide = BorderSide.none,
  6. Radius cardRadius = const Radius.circular(4),
  7. Color? cardColor,
  8. Color? cardShadowColor,
  9. Color? cardSurfaceTintColor,
  10. double? cardElevation,
  11. Clip? cardClipBehavior,
  12. Duration duration = kThemeAnimationDuration,
  13. required Widget header,
  14. 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!');