ExpandChild constructor
const
ExpandChild({
- Key? key,
- required Widget child,
- Duration animationDuration = _kExpandDuration,
- bool hideIndicatorOnExpand = false,
- Axis direction = Axis.vertical,
- IndicatorBuilder? indicatorBuilder,
- ExpandIndicatorStyle expandIndicatorStyle = ExpandIndicatorStyle.icon,
- String? indicatorCollapsedHint,
- String? indicatorExpandedHint,
- EdgeInsets? indicatorPadding,
- Color? indicatorIconColor,
- double? indicatorIconSize,
- IconData? indicatorIcon,
- TextStyle? indicatorHintTextStyle,
- bool capitalizeIndicatorHintText = true,
- double collapsedVisibilityFactor = 0,
- Alignment? indicatorAlignment,
Implementation
const ExpandChild({
super.key,
required this.child,
this.animationDuration = _kExpandDuration,
this.hideIndicatorOnExpand = false,
this.direction = Axis.vertical,
this.indicatorBuilder,
this.expandIndicatorStyle = ExpandIndicatorStyle.icon,
this.indicatorCollapsedHint,
this.indicatorExpandedHint,
this.indicatorPadding,
this.indicatorIconColor,
this.indicatorIconSize,
this.indicatorIcon,
this.indicatorHintTextStyle,
this.capitalizeIndicatorHintText = true,
this.collapsedVisibilityFactor = 0,
this.indicatorAlignment,
}) : assert(
collapsedVisibilityFactor >= 0 && collapsedVisibilityFactor <= 1,
'The parameter collapsedHeightFactor must lay between 0 and 1',
);