CometChatGroups constructor

const CometChatGroups({
  1. Key? key,
  2. GroupsBuilderProtocol? groupsProtocol,
  3. Widget? subtitleView(
    1. BuildContext,
    2. Group
    )?,
  4. Widget listItemView(
    1. Group
    )?,
  5. GroupsStyle groupsStyle = const GroupsStyle(),
  6. ScrollController? controller,
  7. CometChatTheme? theme,
  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. String? errorStateText,
  17. String? emptyStateText,
  18. dynamic stateCallBack(
    1. CometChatGroupsController controller
    )?,
  19. GroupsRequestBuilder? groupsRequestBuilder,
  20. bool? hideError,
  21. WidgetBuilder? loadingStateView,
  22. WidgetBuilder? emptyStateView,
  23. WidgetBuilder? errorStateView,
  24. ListItemStyle? listItemStyle,
  25. List<CometChatOption>? options(
    1. Group group,
    2. CometChatGroupsController controller,
    3. BuildContext context
    )?,
  26. AvatarStyle? avatarStyle,
  27. StatusIndicatorStyle? statusIndicatorStyle,
  28. bool hideSeparator = false,
  29. List<Widget> appBarOptions(
    1. BuildContext context
    )?,
  30. Widget? passwordGroupIcon,
  31. Widget? privateGroupIcon,
  32. ActivateSelection? activateSelection,
  33. VoidCallback? onBack,
  34. dynamic onItemTap(
    1. BuildContext,
    2. Group
    )?,
  35. dynamic onItemLongPress(
    1. BuildContext,
    2. Group
    )?,
  36. OnError? onError,
  37. Widget? submitIcon,
  38. Widget? selectionIcon,
  39. bool? hideAppbar = false,
  40. Widget? chatAvatar({
    1. String? name,
    2. required bool online,
    3. Color? rimColor,
    4. double? size,
    5. required String url,
    })?,
  41. Widget? chatConversationItem({
    1. required String avatarName,
    2. String? avatarUrl,
    3. bool? isGroupChat,
    4. String? lastAction,
    5. bool? online,
    6. String? subtitle,
    7. DateTime? time,
    8. required String title,
    9. int? unreadCount,
    })?,
  42. String? controllerTag,
})

Implementation

const CometChatGroups(
    {super.key,
    this.groupsProtocol,
    this.subtitleView,
    this.listItemView,
    this.groupsStyle = const GroupsStyle(),
    this.controller,
    this.theme,
    this.searchPlaceholder,
    this.backButton,
    this.showBackButton = true,
    this.searchBoxIcon,
    this.hideSearch = false,
    this.selectionMode,
    this.onSelection,
    this.title,
    this.errorStateText,
    this.emptyStateText,
    this.stateCallBack,
    this.groupsRequestBuilder,
    this.hideError,
    this.loadingStateView,
    this.emptyStateView,
    this.errorStateView,
    this.listItemStyle,
    this.options,
    this.avatarStyle,
    this.statusIndicatorStyle,
    this.hideSeparator = false,
    this.appBarOptions,
    this.passwordGroupIcon,
    this.privateGroupIcon,
    this.activateSelection,
    this.onBack,
    this.onItemTap,
    this.onItemLongPress,
    this.onError,
    this.submitIcon,
    this.selectionIcon,
    this.hideAppbar = false,
    this.chatAvatar,
    this.chatConversationItem,
    this.controllerTag});