GetListView constructor

const GetListView({
  1. required GetSliverBuilder sliverBuilder,
  2. GetSliverBuilder? topSliverBuilder,
  3. GetSliverBuilder? bottomSliverBuilder,
  4. WidgetBuilder? replacementBuilder,
  5. bool replace = false,
  6. Axis scrollDirection = Axis.vertical,
  7. bool reverse = false,
  8. ScrollController? controller,
  9. bool? primary,
  10. ScrollPhysics? physics = const AlwaysBouncingScrollPhysics(),
  11. bool shrinkWrap = false,
  12. double? cacheExtent,
  13. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  14. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  15. String? restorationId,
  16. Clip clipBehavior = Clip.hardEdge,
  17. Key? key,
})

Implementation

const GetListView({
  required this.sliverBuilder,
  this.topSliverBuilder,
  this.bottomSliverBuilder,
  this.replacementBuilder,
  this.replace = false,
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  ScrollController? controller,
  bool? primary,
  ScrollPhysics? physics = const AlwaysBouncingScrollPhysics(),
  bool shrinkWrap = false,
  double? cacheExtent,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  String? restorationId,
  Clip clipBehavior = Clip.hardEdge,
  Key? key,
})  : assert(sliverBuilder != null),
      super(
        key: key,
        scrollDirection: scrollDirection,
        reverse: reverse,
        controller: controller,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        cacheExtent: cacheExtent,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );