StreamChannelListView constructor

const StreamChannelListView({
  1. Key? key,
  2. required StreamChannelListController controller,
  3. StreamChannelListViewIndexedWidgetBuilder? itemBuilder,
  4. PagedValueScrollViewIndexedWidgetBuilder<Channel> separatorBuilder = defaultChannelListViewSeparatorBuilder,
  5. WidgetBuilder? emptyBuilder,
  6. WidgetBuilder? loadingBuilder,
  7. Widget errorBuilder(
    1. BuildContext,
    2. StreamChatError
    )?,
  8. void onChannelTap(
    1. Channel
    )?,
  9. void onChannelLongPress(
    1. Channel
    )?,
  10. int loadMoreTriggerIndex = 3,
  11. Axis scrollDirection = Axis.vertical,
  12. bool reverse = false,
  13. ScrollController? scrollController,
  14. bool? primary,
  15. ScrollPhysics? physics,
  16. bool shrinkWrap = false,
  17. EdgeInsetsGeometry? padding,
  18. bool addAutomaticKeepAlives = true,
  19. bool addRepaintBoundaries = true,
  20. bool addSemanticIndexes = true,
  21. double? cacheExtent,
  22. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  23. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  24. String? restorationId,
  25. Clip clipBehavior = Clip.hardEdge,
})

Creates a new instance of StreamChannelListView.

Implementation

const StreamChannelListView({
  super.key,
  required this.controller,
  this.itemBuilder,
  this.separatorBuilder = defaultChannelListViewSeparatorBuilder,
  this.emptyBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.onChannelTap,
  this.onChannelLongPress,
  this.loadMoreTriggerIndex = 3,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.scrollController,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  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,
});