CometChatUsers constructor
const
CometChatUsers({
- Key? key,
- UsersBuilderProtocol? usersProtocol,
- Widget? chatAvatar({})?,
- Widget? chatConversationItem({})?,
- Widget? subtitleView()?,
- bool? hideSeparator = true,
- Widget listItemView()?,
- UsersStyle usersStyle = const UsersStyle(),
- ScrollController? controller,
- CometChatTheme? theme,
- String? searchPlaceholder,
- Widget? backButton,
- bool showBackButton = true,
- Widget? searchBoxIcon,
- bool hideSearch = false,
- SelectionMode? selectionMode,
- dynamic onSelection(
- List<
User> ?, - BuildContext
- List<
- String? title,
- String? errorStateText,
- String? emptyStateText,
- dynamic stateCallBack(
- CometChatUsersController controller
- UsersRequestBuilder? usersRequestBuilder,
- bool? hideError,
- WidgetBuilder? loadingStateView,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- ListItemStyle? listItemStyle,
- List<
CometChatOption> ? options(- User,
- CometChatUsersController controller
- AvatarStyle? avatarStyle,
- StatusIndicatorStyle? statusIndicatorStyle,
- List<
Widget> appBarOptions(- BuildContext context
- bool? hideSectionSeparator = false,
- bool? disableUsersPresence,
- ActivateSelection? activateSelection,
- OnError? onError,
- VoidCallback? onBack,
- dynamic onItemTap(
- BuildContext context,
- User
- dynamic onItemLongPress(
- BuildContext context,
- User
- Widget? selectionIcon,
- Widget? submitIcon,
- bool? hideAppbar = false,
- 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});