CometChatAddMembers constructor

CometChatAddMembers({
  1. Key? key,
  2. String? title,
  3. String? searchPlaceholder,
  4. Widget? backButton,
  5. bool showBackButton = true,
  6. Widget? searchIcon,
  7. bool? hideSearch = false,
  8. CometChatTheme? theme,
  9. dynamic onSelection(
    1. List<User>?,
    2. BuildContext
    )?,
  10. required Group group,
  11. AddMembersStyle? addMembersStyle,
  12. Widget? subtitleView(
    1. BuildContext,
    2. User
    )?,
  13. bool? disableUsersPresence,
  14. Widget listItemView(
    1. User
    )?,
  15. List<CometChatOption>? options(
    1. User,
    2. CometChatUsersController controller
    )?,
  16. bool? hideSeparator,
  17. List<Widget> appBarOptions(
    1. BuildContext context
    )?,
  18. SelectionMode selectionMode = SelectionMode.multiple,
  19. String? errorStateText,
  20. String? emptyStateText,
  21. UsersRequestBuilder? usersRequestBuilder,
  22. UsersBuilderProtocol? usersProtocol,
  23. bool? hideError,
  24. WidgetBuilder? loadingStateView,
  25. WidgetBuilder? emptyStateView,
  26. WidgetBuilder? errorStateView,
  27. VoidCallback? onBack,
  28. Widget? selectionIcon,
  29. OnError? onError,
  30. AvatarStyle? avatarStyle,
  31. ListItemStyle? listItemStyle,
  32. StatusIndicatorStyle? statusIndicatorStyle,
  33. Widget? submitIcon,
})

Implementation

CometChatAddMembers(
    {super.key,
    this.title,
    this.searchPlaceholder,
    this.backButton,
    this.showBackButton = true,
    this.searchIcon,
    this.hideSearch = false,
    this.theme,
    this.onSelection,
    required Group group,
    this.addMembersStyle,
    this.subtitleView,
    this.disableUsersPresence,
    this.listItemView,
    this.options,
    this.hideSeparator,
    this.appBarOptions,
    this.selectionMode = SelectionMode.multiple,
    this.errorStateText,
    this.emptyStateText,
    this.usersRequestBuilder,
    this.usersProtocol,
    this.hideError,
    this.loadingStateView,
    this.emptyStateView,
    this.errorStateView,
    this.onBack,
    this.selectionIcon,
    this.onError,
    this.avatarStyle,
    this.listItemStyle,
    this.statusIndicatorStyle,
    this.submitIcon})
    : _cometChatAddMembersController =
          CometChatAddMembersController(group: group, onError: onError);