Expandable constructor
const
Expandable({
- Key? key,
- required Widget firstChild,
- required Widget secondChild,
- Widget? subChild,
- Function? onPressed,
- Color backgroundColor = Colors.white,
- Duration animationDuration = const Duration(milliseconds: 400),
- DecorationImage? backgroundImage,
- bool? showArrowWidget,
- bool? initiallyExpanded,
- bool centralizeFirstChild = true,
- Widget? arrowWidget,
- ArrowLocation? arrowLocation = ArrowLocation.right,
- BorderRadius? borderRadius,
- Clickable clickable = Clickable.firstChildOnly,
- Function? onLongPress,
- Animation<
double> ? animation, - AnimationController? animationController,
- void onHover()?,
- 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);