CometChatGroups constructor

const CometChatGroups({
  1. Key? key,
  2. GroupsBloc? groupsBloc,
  3. GroupsBuilderProtocol? groupsProtocol,
  4. Widget? subtitleView(
    1. BuildContext context,
    2. Group group
    )?,
  5. Widget listItemView(
    1. Group group
    )?,
  6. CometChatGroupsStyle? groupsStyle,
  7. ScrollController? scrollController,
  8. String? searchPlaceholder,
  9. Widget? backButton,
  10. bool showBackButton = true,
  11. Widget? searchBoxIcon,
  12. bool hideSearch = false,
  13. SelectionMode? selectionMode,
  14. dynamic onSelection(
    1. List<Group>?
    )?,
  15. String? title,
  16. GroupsRequestBuilder? groupsRequestBuilder,
  17. bool? hideError,
  18. WidgetBuilder? loadingStateView,
  19. WidgetBuilder? emptyStateView,
  20. WidgetBuilder? errorStateView,
  21. List<Widget> appBarOptions(
    1. BuildContext context
    )?,
  22. Widget? passwordGroupIcon,
  23. Widget? privateGroupIcon,
  24. ActivateSelection? activateSelection,
  25. VoidCallback? onBack,
  26. dynamic onItemTap(
    1. BuildContext context,
    2. Group group
    )?,
  27. dynamic onItemLongPress(
    1. BuildContext context,
    2. Group group
    )?,
  28. OnError? onError,
  29. Widget? submitIcon,
  30. bool? hideAppbar = false,
  31. String? controllerTag,
  32. double? height,
  33. double? width,
  34. String? searchKeyword,
  35. OnLoad<Group>? onLoad,
  36. OnEmpty? onEmpty,
  37. bool? groupTypeVisibility = true,
  38. List<CometChatOption>? setOptions(
    1. Group group,
    2. GroupsBloc bloc,
    3. BuildContext context
    )?,
  39. List<CometChatOption>? addOptions(
    1. Group group,
    2. GroupsBloc bloc,
    3. BuildContext context
    )?,
  40. Widget? titleView(
    1. BuildContext context,
    2. Group group
    )?,
  41. Widget? leadingView(
    1. BuildContext context,
    2. Group group
    )?,
  42. Widget? trailingView(
    1. BuildContext context,
    2. Group group
    )?,
})

Implementation

const CometChatGroups({
  super.key,
  this.groupsBloc,
  this.groupsProtocol,
  this.subtitleView,
  this.listItemView,
  this.groupsStyle,
  this.scrollController,
  this.searchPlaceholder,
  this.backButton,
  this.showBackButton = true,
  this.searchBoxIcon,
  this.hideSearch = false,
  this.selectionMode,
  this.onSelection,
  this.title,
  this.groupsRequestBuilder,
  this.hideError,
  this.loadingStateView,
  this.emptyStateView,
  this.errorStateView,
  this.appBarOptions,
  this.passwordGroupIcon,
  this.privateGroupIcon,
  this.activateSelection,
  this.onBack,
  this.onItemTap,
  this.onItemLongPress,
  this.onError,
  this.submitIcon,
  this.hideAppbar = false,
  this.controllerTag,
  this.height,
  this.width,
  this.searchKeyword,
  this.onLoad,
  this.onEmpty,
  this.groupTypeVisibility = true,
  this.setOptions,
  this.addOptions,
  this.titleView,
  this.leadingView,
  this.trailingView,
});