StreamMemberGridView constructor

const StreamMemberGridView({
  1. Key? key,
  2. required StreamMemberListController controller,
  3. SliverGridDelegate gridDelegate = defaultMemberGridViewDelegate,
  4. StreamMemberGridViewIndexedWidgetBuilder? itemBuilder,
  5. WidgetBuilder? emptyBuilder,
  6. PagedValueScrollViewLoadMoreErrorBuilder? loadMoreErrorBuilder,
  7. WidgetBuilder? loadMoreIndicatorBuilder,
  8. WidgetBuilder? loadingBuilder,
  9. Widget errorBuilder(
    1. BuildContext,
    2. StreamChatError
    )?,
  10. void onMemberTap(
    1. Member
    )?,
  11. void onMemberLongPress(
    1. Member
    )?,
  12. int loadMoreTriggerIndex = 3,
  13. Axis scrollDirection = Axis.vertical,
  14. bool reverse = false,
  15. ScrollController? scrollController,
  16. bool? primary,
  17. ScrollPhysics? physics,
  18. bool shrinkWrap = false,
  19. EdgeInsetsGeometry? padding,
  20. bool addAutomaticKeepAlives = true,
  21. bool addRepaintBoundaries = true,
  22. bool addSemanticIndexes = true,
  23. double? cacheExtent,
  24. int? semanticChildCount,
  25. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  26. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  27. String? restorationId,
  28. Clip clipBehavior = Clip.hardEdge,
})

Creates a new instance of StreamMemberGridView.

Implementation

const StreamMemberGridView({
  super.key,
  required this.controller,
  this.gridDelegate = defaultMemberGridViewDelegate,
  this.itemBuilder,
  this.emptyBuilder,
  this.loadMoreErrorBuilder,
  this.loadMoreIndicatorBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.onMemberTap,
  this.onMemberLongPress,
  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,
});