CometChatUsers constructor

const CometChatUsers({
  1. Key? key,
  2. UsersBuilderProtocol? usersProtocol,
  3. Widget? chatAvatar({
    1. String? name,
    2. required bool online,
    3. Color? rimColor,
    4. double? size,
    5. required String url,
    })?,
  4. 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,
    })?,
  5. Widget? subtitleView(
    1. BuildContext,
    2. User
    )?,
  6. bool? hideSeparator = true,
  7. Widget listItemView(
    1. User
    )?,
  8. UsersStyle usersStyle = const UsersStyle(),
  9. ScrollController? controller,
  10. CometChatTheme? theme,
  11. String? searchPlaceholder,
  12. Widget? backButton,
  13. bool showBackButton = true,
  14. Widget? searchBoxIcon,
  15. bool hideSearch = false,
  16. SelectionMode? selectionMode,
  17. dynamic onSelection(
    1. List<User>?,
    2. BuildContext
    )?,
  18. String? title,
  19. String? errorStateText,
  20. String? emptyStateText,
  21. dynamic stateCallBack(
    1. CometChatUsersController controller
    )?,
  22. UsersRequestBuilder? usersRequestBuilder,
  23. bool? hideError,
  24. WidgetBuilder? loadingStateView,
  25. WidgetBuilder? emptyStateView,
  26. WidgetBuilder? errorStateView,
  27. ListItemStyle? listItemStyle,
  28. List<CometChatOption>? options(
    1. User,
    2. CometChatUsersController controller
    )?,
  29. AvatarStyle? avatarStyle,
  30. StatusIndicatorStyle? statusIndicatorStyle,
  31. List<Widget> appBarOptions(
    1. BuildContext context
    )?,
  32. bool? hideSectionSeparator = false,
  33. bool? disableUsersPresence,
  34. ActivateSelection? activateSelection,
  35. OnError? onError,
  36. VoidCallback? onBack,
  37. dynamic onItemTap(
    1. BuildContext context,
    2. User
    )?,
  38. dynamic onItemLongPress(
    1. BuildContext context,
    2. User
    )?,
  39. Widget? selectionIcon,
  40. Widget? submitIcon,
  41. bool? hideAppbar = false,
  42. String? controllerTag,
})

Implementation

const CometChatUsers(
    {super.key,
    this.usersProtocol,
    this.chatAvatar,
    this.chatConversationItem,
    this.subtitleView,
    this.hideSeparator = true,
    this.listItemView,
    this.usersStyle = const UsersStyle(),
    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.usersRequestBuilder,
    this.hideError,
    this.loadingStateView,
    this.emptyStateView,
    this.errorStateView,
    this.listItemStyle,
    this.options,
    this.avatarStyle,
    this.statusIndicatorStyle,
    this.appBarOptions,
    this.hideSectionSeparator = false,
    this.disableUsersPresence,
    this.activateSelection,
    this.onError,
    this.onBack,
    this.onItemTap,
    this.onItemLongPress,
    this.selectionIcon,
    this.submitIcon,
    this.hideAppbar = false,
    this.controllerTag});