ContactsConfiguration class
ContactsConfiguration is a component that displays a list of users and groups with the help of CometChatListBase and CometChatListItem
ContactsConfiguration(
);
Constructors
-
ContactsConfiguration({UsersConfiguration? usersConfiguration, UserGroupBuilder? onItemTap, GroupsConfiguration? groupsConfiguration, String? usersTabTitle, String? groupsTabTitle, CometChatTheme? theme, String? title, Widget? closeIcon, ContactsStyle? contactsStyle, VoidCallback? onClose, dynamic onSubmitIconTap(BuildContext context, List<
User> ? selectedUsersList, List<Group> ? selectedGroupsList)?, TabVisibility? tabVisibility = TabVisibility.usersAndGroups, bool? hideSubmitIcon, int? selectionLimit, SelectionMode? selectionMode, Widget? submitIcon, SnackBarConfiguration? snackBarConfiguration})
Properties
- closeIcon → Widget?
-
closeIcon close icon widget
final
- contactsStyle → ContactsStyle?
-
contactsStyle sets style
final
- groupsConfiguration → GroupsConfiguration?
-
GroupConfiguration
custom request groups request builder protocolfinal - groupsTabTitle → String?
-
groupsTabTitle title text of group tab
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideSubmitIcon → bool?
-
hideSubmitIcon triggered when clicked on submit icon
final
- onClose → VoidCallback?
-
onClose call function to be called on close button click
final
- onItemTap → UserGroupBuilder?
-
onItemTap callback triggered on tapping a user or group item
final
-
onSubmitIconTap
→ dynamic Function(BuildContext context, List<
User> ? selectedUsersList, List<Group> ? selectedGroupsList)? -
onSubmitIconTap triggered when clicked on submit icon
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionLimit → int?
-
selectionLimit set the limit for maximum selection limit, default limit is 5
final
- selectionMode → SelectionMode?
-
SelectionMode sets the selection mode
final
- snackBarConfiguration → SnackBarConfiguration?
-
snackBarConfiguration sets configuration properties for showing snackBar
final
- submitIcon → Widget?
-
submitIcon triggered when clicked on submit icon
final
- tabVisibility → TabVisibility?
-
tabVisibility parameter to alter visibility of different tabs
final
- theme → CometChatTheme?
-
theme set custom theme
final
- title → String?
-
title sets title for the list
final
- usersConfiguration → UsersConfiguration?
-
usersConfiguration set custom users request builder protocol
final
- usersTabTitle → String?
-
usersTabTitle title text of user tab
final
Methods
-
merge(
ContactsConfiguration mergeWith) → ContactsConfiguration -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited