ExpandableListView constructor

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

Implementation

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