ExpandableListView constructor

ExpandableListView({
  1. required SliverExpandableChildDelegate<dynamic, ExpandableListSection> builder,
  2. bool reverse = false,
  3. ScrollController? controller,
  4. bool? primary,
  5. ScrollPhysics? physics,
  6. bool shrinkWrap = false,
  7. EdgeInsetsGeometry? padding,
  8. double? cacheExtent,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

Implementation

ExpandableListView({
  required this.builder,
  bool reverse = false,
  ScrollController? controller,
  bool? primary,
  ScrollPhysics? physics,
  bool shrinkWrap = false,
  EdgeInsetsGeometry? padding,
  double? cacheExtent,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) : super(
        scrollDirection: Axis.vertical,
        reverse: reverse,
        controller: controller,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        padding: padding,
        cacheExtent: cacheExtent,
        semanticChildCount: builder.sectionList.length,
        dragStartBehavior: dragStartBehavior,
      );