CometChatAddMembers constructor
CometChatAddMembers({
- Key? key,
- String? title,
- String? searchPlaceholder,
- Widget? backButton,
- bool showBackButton = true,
- Widget? searchIcon,
- bool? hideSearch = false,
- CometChatTheme? theme,
- dynamic onSelection(
- List<
User> ?, - BuildContext
- List<
- required Group group,
- AddMembersStyle? addMembersStyle,
- Widget? subtitleView()?,
- bool? disableUsersPresence,
- Widget listItemView()?,
- List<
CometChatOption> ? options(- User,
- CometChatUsersController controller
- bool? hideSeparator,
- List<
Widget> appBarOptions(- BuildContext context
- SelectionMode selectionMode = SelectionMode.multiple,
- String? errorStateText,
- String? emptyStateText,
- UsersRequestBuilder? usersRequestBuilder,
- UsersBuilderProtocol? usersProtocol,
- bool? hideError,
- WidgetBuilder? loadingStateView,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- VoidCallback? onBack,
- Widget? selectionIcon,
- OnError? onError,
- AvatarStyle? avatarStyle,
- ListItemStyle? listItemStyle,
- StatusIndicatorStyle? statusIndicatorStyle,
- 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);