Expander<T> constructor
const
Expander<T> ({
- required ExpanderBuilder contentBuilder,
- required List<
Widget> children, - required ValueChanged<
bool> onExpansionChanged, - required ValueNotifier<
bool> isExpanded, - required ExpanderBuilder expanderBuilder,
- bool canExpand = true,
- Key? key,
- Curve animationCurve = Curves.easeInOut,
- Duration animationDuration = const Duration(milliseconds: 500),
Creates an expander widget
Implementation
const Expander({
required this.contentBuilder,
required this.children,
required this.onExpansionChanged,
required this.isExpanded,
required this.expanderBuilder,
this.canExpand = true,
super.key,
this.animationCurve = Curves.easeInOut,
this.animationDuration = const Duration(milliseconds: 500),
});