AsyncListView<T> constructor

const AsyncListView<T>({
  1. Key? key,
  2. required Stream<T> stream,
  3. required IndexedSnapshotWidgetBuilder<T> itemBuilder,
  4. List<T>? initialData,
  5. Widget? loadingWidget,
  6. WidgetBuilder? noResultsWidgetBuilder,
  7. Axis scrollDirection = Axis.vertical,
  8. bool reverse = false,
  9. ScrollController? controller,
  10. bool? primary,
  11. ScrollPhysics? physics,
  12. bool shrinkWrap = false,
  13. EdgeInsetsGeometry? padding,
  14. double? itemExtent,
  15. bool addAutomaticKeepAlives = true,
  16. bool addRepaintBoundaries = true,
  17. bool addSemanticIndexes = true,
  18. double? cacheExtent,
  19. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  20. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  21. String? restorationId,
  22. Clip clipBehavior = Clip.hardEdge,
})

Creates an AsyncListView connected to the specified stream.

Implementation

const AsyncListView({
  Key? key,
  required this.stream,
  required this.itemBuilder,
  this.initialData,
  this.loadingWidget,
  this.noResultsWidgetBuilder,
  // Generic ListView parameters.
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  this.itemExtent,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
}) : super(key: key);