CometChatUsers constructor
const
CometChatUsers({
- Key? key,
- CometChatUsersStyle usersStyle = const CometChatUsersStyle(),
- ScrollController? scrollController,
- String? searchPlaceholder,
- Widget? backButton,
- bool showBackButton = true,
- Widget? searchBoxIcon,
- bool hideSearch = false,
- SelectionMode? selectionMode,
- dynamic onSelection(
- List<
User> ?, - BuildContext
- List<
- String? title,
- WidgetBuilder? loadingStateView,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- List<
Widget> appBarOptions(- BuildContext context
- bool? usersStatusVisibility = true,
- ActivateSelection? activateSelection,
- OnError? onError,
- VoidCallback? onBack,
- dynamic onItemTap(
- BuildContext context,
- User
- dynamic onItemLongPress(
- BuildContext context,
- User
- Widget? submitIcon,
- bool? hideAppbar = false,
- double? height,
- double? width,
- bool? stickyHeaderVisibility = false,
- String? searchKeyword,
- OnLoad<
User> ? onLoad, - OnEmpty? onEmpty,
- Widget? subtitleView()?,
- Widget listItemView()?,
- Widget? titleView(
- BuildContext context,
- User user
- Widget? leadingView(
- BuildContext context,
- User user
- Widget? trailingView(
- BuildContext context,
- User user
- UsersBloc? usersBloc,
- UsersRequestBuilder? usersRequestBuilder,
Implementation
const CometChatUsers({
super.key,
this.usersStyle = const CometChatUsersStyle(),
this.scrollController,
this.searchPlaceholder,
this.backButton,
this.showBackButton = true,
this.searchBoxIcon,
this.hideSearch = false,
this.selectionMode,
this.onSelection,
this.title,
this.loadingStateView,
this.emptyStateView,
this.errorStateView,
this.appBarOptions,
this.usersStatusVisibility = true,
this.activateSelection,
this.onError,
this.onBack,
this.onItemTap,
this.onItemLongPress,
this.submitIcon,
this.hideAppbar = false,
this.height,
this.width,
this.stickyHeaderVisibility = false,
this.searchKeyword,
this.onLoad,
this.onEmpty,
this.subtitleView,
this.listItemView,
this.titleView,
this.leadingView,
this.trailingView,
this.usersBloc,
this.usersRequestBuilder,
});