ChannelListView constructor

ChannelListView({
  1. Key? key,
  2. Filter? filter,
  3. List<SortOption<ChannelModel>>? sort,
  4. bool state = true,
  5. bool watch = true,
  6. bool presence = false,
  7. int? memberLimit,
  8. int? messageLimit,
  9. @Deprecated("'pagination' is deprecated and shouldn't be used. " "This property is no longer used, Please use 'limit' instead") PaginationParams? pagination,
  10. int? limit,
  11. ChannelTapCallback? onChannelTap,
  12. dynamic onChannelLongPress(
    1. Channel
    )?,
  13. Widget? channelWidget,
  14. ChannelPreviewBuilder? channelPreviewBuilder,
  15. dynamic separatorBuilder(
    1. BuildContext,
    2. int
    )?,
  16. dynamic onImageTap(
    1. Channel
    )?,
  17. VoidCallback? onStartChatPressed,
  18. bool swipeToAction = false,
  19. bool pullToRefresh = true,
  20. int crossAxisCount = 1,
  21. EdgeInsetsGeometry? padding,
  22. List<Channel> selectedChannels = const [],
  23. ViewInfoCallback? onViewInfoTap,
  24. ErrorBuilder? errorBuilder,
  25. WidgetBuilder? emptyBuilder,
  26. WidgetBuilder? loadingBuilder,
  27. dynamic listBuilder(
    1. BuildContext,
    2. List<Channel>
    )?,
  28. ChannelInfoCallback? onMoreDetailsPressed,
  29. ChannelInfoCallback? onDeletePressed,
  30. List<SwipeAction>? swipeActions,
  31. ChannelListController? channelListController,
})

Instantiate a new ChannelListView

Implementation

ChannelListView({
  Key? key,
  this.filter,
  this.sort,
  this.state = true,
  this.watch = true,
  this.presence = false,
  this.memberLimit,
  this.messageLimit,
  @Deprecated(
    "'pagination' is deprecated and shouldn't be used. "
    "This property is no longer used, Please use 'limit' instead",
  )
      this.pagination,
  int? limit,
  this.onChannelTap,
  this.onChannelLongPress,
  this.channelWidget,
  this.channelPreviewBuilder,
  this.separatorBuilder,
  this.onImageTap,
  this.onStartChatPressed,
  this.swipeToAction = false,
  this.pullToRefresh = true,
  this.crossAxisCount = 1,
  this.padding,
  this.selectedChannels = const [],
  this.onViewInfoTap,
  this.errorBuilder,
  this.emptyBuilder,
  this.loadingBuilder,
  this.listBuilder,
  this.onMoreDetailsPressed,
  this.onDeletePressed,
  this.swipeActions,
  this.channelListController,
})  : limit = limit ?? pagination?.limit ?? 25,
      super(key: key);