UsersConfiguration constructor

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

Implementation

const UsersConfiguration(
    {this.title,
    this.searchPlaceholder,
    this.showBackButton,
    this.hideSearch,
    this.usersRequestBuilder,
    this.subtitleView,
    this.hideSeparator,
    this.listItemView,
    this.usersStyle,
    this.options,
    this.backButton,
    this.searchBoxIcon,
    this.theme,
    this.selectionMode,
    this.onSelection,
    this.emptyStateText,
    this.errorStateText,
    this.loadingStateView,
    this.emptyStateView,
    this.errorStateView,
    this.listItemStyle,
    this.avatarStyle,
    this.statusIndicatorStyle,
    this.appBarOptions,
    this.hideSectionSeparator,
    this.disableUsersPresence,
    this.activateSelection,
    this.hideError,
    this.stateCallBack,
    this.controller,
    this.usersProtocol,
    this.onError,
    this.onBack,
    this.onItemTap,
    this.onItemLongPress,
    this.selectionIcon,
    this.submitIcon,
    this.hideAppbar,
    this.controllerTag});