BetterCollapse constructor
const
BetterCollapse({
- Key? key,
- required BetterCollapseItem children,
- ExpansibleController? expansibleController,
- bool accordion = false,
- EdgeInsetsGeometry? titlePadding,
- VisualDensity? titleVisualDensity,
- bool? titleDense,
- double? minTitleHeight = 0,
- double? titleMinVerticalPadding = 0,
- EdgeInsetsGeometry? childrenPadding = EdgeInsets.zero,
- EdgeInsetsGeometry? contentPadding,
- bool showDivider = true,
- Color? dividerColor,
- double? dividerHeight,
- double dividerThickness = 0,
- double dividerIndent = 0,
- double dividerEndIndent = 0,
- bool showContentTopBorder = true,
- Color? contentTopBorderColor,
- double? contentTopBorderWidth,
- Alignment alignment = Alignment.centerLeft,
- CrossAxisAlignment expandedCrossAxisAlignment = CrossAxisAlignment.start,
- Color? background,
- Color? collapsedBackground,
- Color? iconColor,
- Color? collapsedIconColor,
- 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,
});