CometChatUsers constructor

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

Implementation

const CometChatUsers(
    {super.key,
    this.usersProtocol,
    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});