ExpandChild constructor

const ExpandChild({
  1. Key? key,
  2. required Widget child,
  3. Duration animationDuration = _kExpandDuration,
  4. bool hideIndicatorOnExpand = false,
  5. Axis direction = Axis.vertical,
  6. IndicatorBuilder? indicatorBuilder,
  7. ExpandIndicatorStyle expandIndicatorStyle = ExpandIndicatorStyle.icon,
  8. String? indicatorCollapsedHint,
  9. String? indicatorExpandedHint,
  10. EdgeInsets? indicatorPadding,
  11. Color? indicatorIconColor,
  12. double? indicatorIconSize,
  13. IconData? indicatorIcon,
  14. TextStyle? indicatorHintTextStyle,
  15. bool capitalizeIndicatorHintText = true,
  16. double collapsedVisibilityFactor = 0,
  17. 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',
      );