GroupsConfiguration constructor

const GroupsConfiguration({
  1. String? title,
  2. String? searchPlaceholder,
  3. bool? showBackButton,
  4. bool? hideSearch,
  5. GroupsStyle? groupsStyle,
  6. GroupsRequestBuilder? groupsRequestBuilder,
  7. Widget? subtitleView(
    1. BuildContext,
    2. Group
    )?,
  8. Widget listItemView(
    1. Group
    )?,
  9. ScrollController? controller,
  10. List<CometChatOption>? options(
    1. Group group,
    2. CometChatGroupsController controller,
    3. BuildContext context
    )?,
  11. Widget? backButton,
  12. Widget? searchBoxIcon,
  13. CometChatTheme? theme,
  14. SelectionMode? selectionMode,
  15. dynamic onSelection(
    1. List<Group>?
    )?,
  16. String? emptyStateText,
  17. String? errorStateText,
  18. WidgetBuilder? loadingStateView,
  19. WidgetBuilder? emptyStateView,
  20. WidgetBuilder? errorStateView,
  21. ListItemStyle? listItemStyle,
  22. AvatarStyle? avatarStyle,
  23. StatusIndicatorStyle? statusIndicatorStyle,
  24. Widget? createGroupIcon,
  25. JoinProtectedGroupConfiguration? joinProtectedGroupConfiguration,
  26. bool? hideSeparator,
  27. Widget? passwordGroupIcon,
  28. Widget? privateGroupIcon,
  29. ActivateSelection? activateSelection,
  30. bool? hideError,
  31. dynamic stateCallBack(
    1. CometChatGroupsController controller
    )?,
  32. GroupsBuilderProtocol? groupsProtocol,
  33. List<Widget> appBarOptions(
    1. BuildContext context
    )?,
  34. OnError? onError,
  35. VoidCallback? onBack,
  36. dynamic onItemTap(
    1. BuildContext,
    2. Group
    )?,
  37. dynamic onItemLongPress(
    1. BuildContext,
    2. Group
    )?,
  38. Widget? submitIcon,
  39. Widget? selectionIcon,
  40. bool? hideAppbar,
  41. Widget? chatAvatar({
    1. String? name,
    2. required bool online,
    3. Color? rimColor,
    4. double? size,
    5. required String url,
    })?,
  42. 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,
    })?,
  43. String? controllerTag,
})

Implementation

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