SmartListView constructor

const SmartListView({
  1. Key? key,
  2. required IndexedWidgetBuilder itemBuilder,
  3. required int itemCount,
  4. double dividerThickness = 0,
  5. Color dividerColor = Colors.transparent,
  6. double? cacheExtent,
  7. bool dividerEnd = false,
  8. bool dividerStart = false,
  9. Axis scrollDirection = Axis.vertical,
  10. IndexedWidgetBuilder? separatorBuilder,
  11. ScrollPhysics? physics,
  12. bool shrinkWrap = false,
  13. ScrollController? scrollController,
  14. EdgeInsetsGeometry padding = EdgeInsets.zero,
  15. bool reverse = false,
  16. double? itemExtent,
  17. bool addAutomaticKeepAlives = true,
  18. bool addRepaintBoundaries = true,
  19. ChildIndexGetter? findChildIndexCallback,
  20. bool isSliver = false,
  21. bool useColumnRow = false,
  22. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.onDrag,
})

Implementation

const SmartListView(
    {Key? key,
    required this.itemBuilder,
    required this.itemCount,
    this.dividerThickness = 0,
    this.dividerColor = Colors.transparent,
    this.cacheExtent,
    this.dividerEnd = false,
    this.dividerStart = false,
    this.scrollDirection = Axis.vertical,
    this.separatorBuilder,
    this.physics,
    this.shrinkWrap = false,
    this.scrollController,
    this.padding = EdgeInsets.zero,
    this.reverse = false,
    this.itemExtent,
    this.addAutomaticKeepAlives = true,
    this.addRepaintBoundaries = true,
    this.findChildIndexCallback,
    this.isSliver = false,
    this.useColumnRow = false,
    this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.onDrag})
    : super(key: key);