Expandable constructor

const Expandable({
  1. required Widget title,
  2. required List<Widget> children,
  3. Key? key,
  4. BoxDecoration? decoration,
  5. EdgeInsetsGeometry? padding,
  6. Curve curve = _kCurve,
  7. Duration duration = _kDuration,
  8. IconData expandIcon = _kExpand,
  9. EdgeInsetsGeometry? margin,
  10. ValueNotifier<bool>? expansionNotifier,
  11. double? iconSize,
  12. bool initiallyExpanded = false,
  13. void onLongPress()?,
  14. EdgeInsetsGeometry? titlePadding,
  15. EdgeInsetsGeometry? childrenPadding,
  16. void onExpansionChanged(
    1. bool isExpanded
    )?,
  17. BorderRadius? borderRadius,
  18. Color? focusColor,
  19. Color? highlightColor,
  20. Color? hoverColor,
  21. Color? splashColor,
  22. Color? iconColor,
  23. double? splashRadius,
})

Implementation

const Expandable({
  required this.title,
  required this.children,
  super.key,
  this.decoration,
  this.padding,
  this.curve = _kCurve,
  this.duration = _kDuration,
  this.expandIcon = _kExpand,
  this.margin,
  this.expansionNotifier,
  this.iconSize,
  this.initiallyExpanded = false,
  this.onLongPress,
  this.titlePadding,
  this.childrenPadding,
  this.onExpansionChanged,
  this.borderRadius,
  this.focusColor,
  this.highlightColor,
  this.hoverColor,
  this.splashColor,
  this.iconColor,
  this.splashRadius,
});