JkAppBarListView.builder constructor

JkAppBarListView.builder({
  1. Key? key,
  2. bool keepAlive = true,
  3. Axis scrollDirection = Axis.vertical,
  4. bool reverse = false,
  5. ScrollController? controller,
  6. bool? primary,
  7. ScrollBehavior? scrollBehavior,
  8. bool shrinkWrap = false,
  9. Key? center,
  10. double anchor = 0.0,
  11. double? cacheExtent,
  12. int? semanticChildCount,
  13. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  14. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  15. String? restorationId,
  16. Clip clipBehavior = Clip.hardEdge,
  17. double? itemExtent,
  18. Widget? prototypeItem,
  19. required NullableIndexedWidgetBuilder itemBuilder,
  20. ChildIndexGetter? findChildIndexCallback,
  21. int? itemCount,
  22. bool addAutomaticKeepAlives = true,
  23. bool addRepaintBoundaries = true,
  24. bool addSemanticIndexes = true,
})

Implementation

JkAppBarListView.builder({
  super.key,
  this.keepAlive = true,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.scrollBehavior,
  this.shrinkWrap = false,
  this.center,
  this.anchor = 0.0,
  this.cacheExtent,
  this.semanticChildCount,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.itemExtent,
  this.prototypeItem,
  required NullableIndexedWidgetBuilder itemBuilder,
  ChildIndexGetter? findChildIndexCallback,
  int? itemCount,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
})  : assert(itemCount == null || itemCount >= 0),
      assert(semanticChildCount == null || semanticChildCount <= itemCount!),
      assert(
        itemExtent == null || prototypeItem == null,
        'You can only pass itemExtent or prototypeItem, not both.',
      ),
      childrenDelegate = SliverChildBuilderDelegate(
        itemBuilder,
        findChildIndexCallback: findChildIndexCallback,
        childCount: itemCount,
        addAutomaticKeepAlives: addAutomaticKeepAlives,
        addRepaintBoundaries: addRepaintBoundaries,
        addSemanticIndexes: addSemanticIndexes,
      );