CometChatUsers constructor

const CometChatUsers({
  1. Key? key,
  2. CometChatUsersStyle usersStyle = const CometChatUsersStyle(),
  3. ScrollController? scrollController,
  4. String? searchPlaceholder,
  5. Widget? backButton,
  6. bool showBackButton = true,
  7. Widget? searchBoxIcon,
  8. bool hideSearch = false,
  9. SelectionMode? selectionMode,
  10. dynamic onSelection(
    1. List<User>?,
    2. BuildContext
    )?,
  11. String? title,
  12. WidgetBuilder? loadingStateView,
  13. WidgetBuilder? emptyStateView,
  14. WidgetBuilder? errorStateView,
  15. List<Widget> appBarOptions(
    1. BuildContext context
    )?,
  16. bool? usersStatusVisibility = true,
  17. ActivateSelection? activateSelection,
  18. OnError? onError,
  19. VoidCallback? onBack,
  20. dynamic onItemTap(
    1. BuildContext context,
    2. User
    )?,
  21. dynamic onItemLongPress(
    1. BuildContext context,
    2. User
    )?,
  22. Widget? submitIcon,
  23. bool? hideAppbar = false,
  24. double? height,
  25. double? width,
  26. bool? stickyHeaderVisibility = false,
  27. String? searchKeyword,
  28. OnLoad<User>? onLoad,
  29. OnEmpty? onEmpty,
  30. Widget? subtitleView(
    1. BuildContext,
    2. User
    )?,
  31. Widget listItemView(
    1. User
    )?,
  32. Widget? titleView(
    1. BuildContext context,
    2. User user
    )?,
  33. Widget? leadingView(
    1. BuildContext context,
    2. User user
    )?,
  34. Widget? trailingView(
    1. BuildContext context,
    2. User user
    )?,
  35. UsersBloc? usersBloc,
  36. 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,
});