M3EExpandableList.scrollable constructor

M3EExpandableList.scrollable({
  1. Key? key,
  2. required List<M3EExpandableData> data,
  3. bool? allowMultipleExpanded,
  4. Set<int> initiallyExpanded = const {},
  5. M3EExpandableStyle? style,
  6. M3ESpring? expandMotion,
  7. M3ESpring? collapseMotion,
  8. void onExpansionChanged(
    1. int index, {
    2. required bool isExpanded,
    })?,
  9. ScrollController? controller,
  10. ScrollPhysics? physics,
  11. bool shrinkWrap = false,
  12. EdgeInsetsGeometry? padding,
})

scrollable.

Implementation

M3EExpandableList.scrollable({
  super.key,
  required List<M3EExpandableData> data,
  super.allowMultipleExpanded,
  super.initiallyExpanded,
  super.style,
  super.expandMotion,
  super.collapseMotion,
  super.onExpansionChanged,
  this.controller,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
}) : _layout = _M3EExpandableListLayout.scrollable,
     super(
       itemCount: data.length,
       headerBuilder: m3eSimpleHeaderBuilder(data),
       bodyBuilder: m3eSimpleBodyBuilder(
         data,
         style ?? const M3EExpandableStyle(),
       ),
     );