Expander<T> constructor

const Expander<T>({
  1. required ExpanderBuilder contentBuilder,
  2. required List<Widget> children,
  3. required ValueChanged<bool> onExpansionChanged,
  4. required ValueNotifier<bool> isExpanded,
  5. required ExpanderBuilder expanderBuilder,
  6. bool canExpand = true,
  7. Key? key,
  8. Curve animationCurve = Curves.easeInOut,
  9. 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),
});