ListViewResourceWidget<T> constructor

const ListViewResourceWidget<T>({
  1. Key? key,
  2. bool useSliver = false,
  3. required Resource<List<T>> resource,
  4. required Widget? loadingTile,
  5. required Widget tileMapper(
    1. T data
    ),
  6. Future<void> refresh()?,
  7. Widget? emptyWidget,
  8. EdgeInsets? padding,
  9. List<Widget>? topWidgets,
  10. Widget errorWidget(
    1. AppException e
    )?,
  11. Axis scrollDirection = Axis.vertical,
  12. bool reverse = false,
  13. ScrollController? controller,
  14. bool? primary,
  15. ScrollPhysics? physics,
  16. bool shrinkWrap = false,
  17. double? itemExtent,
  18. bool addAutomaticKeepAlives = true,
  19. bool addRepaintBoundaries = true,
  20. bool addSemanticIndexes = true,
  21. double? cacheExtent,
  22. int? semanticChildCount,
  23. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  24. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  25. String? restorationId,
  26. Clip clipBehavior = Clip.hardEdge,
  27. int loadingTileQuantity = 2,
  28. Widget separatorBuilder(
    1. int index,
    2. Widget tile
    )?,
  29. String? textTryAgain,
})

Implementation

const ListViewResourceWidget({
  Key? key,
  this.useSliver = false,
  required this.resource,
  required this.loadingTile,
  required this.tileMapper,
  this.refresh,
  this.emptyWidget,
  this.padding,
  this.topWidgets,
  this.errorWidget,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.itemExtent,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.semanticChildCount,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.loadingTileQuantity = 2,
  this.separatorBuilder,
  this.textTryAgain,
})  : reorderableList = false,
      onReorder = null,
      loadingTileBuilder = null,
      super(key: key);