StreamChannelListView constructor
const
StreamChannelListView({
- Key? key,
- required StreamChannelListController controller,
- StreamChannelListViewIndexedWidgetBuilder? itemBuilder,
- PagedValueScrollViewIndexedWidgetBuilder<
Channel> separatorBuilder = defaultChannelListViewSeparatorBuilder, - WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- Widget errorBuilder()?,
- void onChannelTap()?,
- void onChannelLongPress()?,
- int loadMoreTriggerIndex = 3,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? scrollController,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- 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,
});