Expandable constructor

const Expandable({
  1. Key? key,
  2. required Widget firstChild,
  3. required Widget secondChild,
  4. Widget? subChild,
  5. Function? onPressed,
  6. Color backgroundColor = Colors.white,
  7. Duration animationDuration = const Duration(milliseconds: 400),
  8. DecorationImage? backgroundImage,
  9. bool? showArrowWidget,
  10. bool? initiallyExpanded,
  11. bool centralizeFirstChild = true,
  12. Widget? arrowWidget,
  13. ArrowLocation? arrowLocation = ArrowLocation.right,
  14. BorderRadius? borderRadius,
  15. Clickable clickable = Clickable.firstChildOnly,
  16. Function? onLongPress,
  17. Animation<double>? animation,
  18. AnimationController? animationController,
  19. void onHover(
    1. bool
    )?,
  20. List<BoxShadow>? boxShadow,
})

• Expandable widget for general use.

backgroundColor, animationDuration, centralizeFirstChild & clickable arguments must not be null.

Implementation

const Expandable({
  Key? key,
  required this.firstChild,
  required this.secondChild,
  this.subChild,
  this.onPressed,
  this.backgroundColor = Colors.white,
  this.animationDuration = const Duration(milliseconds: 400),
  this.backgroundImage,
  this.showArrowWidget,
  this.initiallyExpanded,
  this.centralizeFirstChild = true,
  this.arrowWidget,
  this.arrowLocation = ArrowLocation.right,
  this.borderRadius,
  this.clickable = Clickable.firstChildOnly,
  this.onLongPress,
  this.animation,
  this.animationController,
  this.onHover,
  this.boxShadow,
}) : super(key: key);