StreamUserGridView constructor
const
StreamUserGridView({
- Key? key,
- required StreamUserListController controller,
- SliverGridDelegate gridDelegate = defaultUserGridViewDelegate,
- StreamUserGridViewIndexedWidgetBuilder? itemBuilder,
- WidgetBuilder? emptyBuilder,
- PagedValueScrollViewLoadMoreErrorBuilder? loadMoreErrorBuilder,
- WidgetBuilder? loadMoreIndicatorBuilder,
- WidgetBuilder? loadingBuilder,
- Widget errorBuilder()?,
- void onUserTap()?,
- void onUserLongPress()?,
- 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,
- int? semanticChildCount,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
Creates a new instance of StreamUserGridView.
Implementation
const StreamUserGridView({
super.key,
required this.controller,
this.gridDelegate = defaultUserGridViewDelegate,
this.itemBuilder,
this.emptyBuilder,
this.loadMoreErrorBuilder,
this.loadMoreIndicatorBuilder,
this.loadingBuilder,
this.errorBuilder,
this.onUserTap,
this.onUserLongPress,
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.semanticChildCount,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
});