BetterCollapse constructor

const BetterCollapse({
  1. Key? key,
  2. required BetterCollapseItem children,
  3. ExpansibleController? expansibleController,
  4. bool accordion = false,
  5. EdgeInsetsGeometry? titlePadding,
  6. VisualDensity? titleVisualDensity,
  7. bool? titleDense,
  8. double? minTitleHeight = 0,
  9. double? titleMinVerticalPadding = 0,
  10. EdgeInsetsGeometry? childrenPadding = EdgeInsets.zero,
  11. EdgeInsetsGeometry? contentPadding,
  12. bool showDivider = true,
  13. Color? dividerColor,
  14. double? dividerHeight,
  15. double dividerThickness = 0,
  16. double dividerIndent = 0,
  17. double dividerEndIndent = 0,
  18. bool showContentTopBorder = true,
  19. Color? contentTopBorderColor,
  20. double? contentTopBorderWidth,
  21. Alignment alignment = Alignment.centerLeft,
  22. CrossAxisAlignment expandedCrossAxisAlignment = CrossAxisAlignment.start,
  23. Color? background,
  24. Color? collapsedBackground,
  25. Color? iconColor,
  26. Color? collapsedIconColor,
  27. Color? splashColor,
})

Implementation

const BetterCollapse({
  super.key,
  required this.children,
  this.expansibleController,
  this.accordion = false,
  this.titlePadding,
  this.titleVisualDensity,
  this.titleDense,
  this.minTitleHeight = 0,
  this.titleMinVerticalPadding = 0,
  this.childrenPadding = EdgeInsets.zero,
  this.contentPadding,
  this.showDivider = true,
  this.dividerColor,
  this.dividerHeight,
  this.dividerThickness = 0,
  this.dividerIndent = 0,
  this.dividerEndIndent = 0,
  this.showContentTopBorder = true,
  this.contentTopBorderColor,
  this.contentTopBorderWidth,
  this.alignment = Alignment.centerLeft,
  this.expandedCrossAxisAlignment = CrossAxisAlignment.start,
  this.background,
  this.collapsedBackground,
  this.iconColor,
  this.collapsedIconColor,
  this.splashColor,
});