ChannelListView constructor
ChannelListView({
- Key? key,
- Filter? filter,
- List<
SortOption< ? sort,ChannelModel> > - bool state = true,
- bool watch = true,
- bool presence = false,
- int? memberLimit,
- int? messageLimit,
- @Deprecated("'pagination' is deprecated and shouldn't be used. " "This property is no longer used, Please use 'limit' instead") PaginationParams? pagination,
- int? limit,
- ChannelTapCallback? onChannelTap,
- dynamic onChannelLongPress()?,
- Widget? channelWidget,
- ChannelPreviewBuilder? channelPreviewBuilder,
- dynamic separatorBuilder()?,
- dynamic onImageTap()?,
- VoidCallback? onStartChatPressed,
- bool swipeToAction = false,
- bool pullToRefresh = true,
- int crossAxisCount = 1,
- EdgeInsetsGeometry? padding,
- List<
Channel> selectedChannels = const [], - ViewInfoCallback? onViewInfoTap,
- ErrorBuilder? errorBuilder,
- WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- dynamic listBuilder()?,
- ChannelInfoCallback? onMoreDetailsPressed,
- ChannelInfoCallback? onDeletePressed,
- List<
SwipeAction> ? swipeActions, - 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);