DetailsConfiguration class
DetailsConfiguration is a data class that has configuration properties to customize the functionality and appearance of CometChatDetails can be used by a component where CometChatDetails is a child component
DetailsConfiguration(
detailsStyle: DetailsStyle(),
avatarStyle: AvatarStyle(),
listItemStyle: ListItemStyle(),
statusIndicatorStyle: StatusIndicatorStyle(),
addMemberConfiguration: AddMemberConfiguration(),
bannedMemberConfiguration: BannedMemberConfiguration(),
groupMembersConfiguration: GroupMembersConfiguration(),
transferOwnershipConfiguration: TransferOwnershipConfiguration()
);
Constructors
-
DetailsConfiguration({String? title, bool? showCloseButton, Icon? closeButtonIcon, bool disableUsersPresence = false, List<
Widget> ? appBarOptions, DetailsStyle? detailsStyle, ListItemStyle? listItemStyle, AvatarStyle? avatarStyle, StatusIndicatorStyle? statusIndicatorStyle, Widget? subtitleView({BuildContext context, Group? group, User? user})?, bool? hideProfile, Widget? protectedGroupIcon, Widget? privateGroupIcon, AddMemberConfiguration? addMemberConfiguration, TransferOwnershipConfiguration? transferOwnershipConfiguration, BannedMemberConfiguration? bannedMemberConfiguration, GroupMembersConfiguration? groupMembersConfiguration, void stateCallBack(CometChatDetailsController)?, List<CometChatDetailsTemplate> ? data(Group? group, User? user)?, Widget? customProfileView, CometChatTheme? theme, VoidCallback? onBack, OnError? onError, ConfirmDialogStyle? leaveGroupDialogStyle})
Properties
- addMemberConfiguration → AddMemberConfiguration?
-
configurations for opening add members
final
-
appBarOptions
→ List<
Widget> ? -
appBarOptions list of options to be visible in app bar
final
- avatarStyle → AvatarStyle?
-
avatarStyle set style for avatar
final
- bannedMemberConfiguration → BannedMemberConfiguration?
-
configurations for opening transfer ownership
final
- closeButtonIcon → Icon?
-
to change closeButtonIcon
final
- customProfileView → Widget?
-
customProfileView provides a customized view profile for users
final
-
data
→ List<
CometChatDetailsTemplate> ? Function(Group? group, User? user)? -
list of templates is passed to data which is used in displaying options
final
- detailsStyle → DetailsStyle?
-
detailsStyle is used to pass styling properties
final
- disableUsersPresence → bool
-
disableUsersPresence controls visibility of status indicator
final
- groupMembersConfiguration → GroupMembersConfiguration?
-
configurations for viewing group members
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideProfile → bool?
-
hideProfile hides view profile for users
final
- leaveGroupDialogStyle → ConfirmDialogStyle?
-
leaveGroupDialogStyle used to customize the dialog box that pops up when trying to leave group
final
- listItemStyle → ListItemStyle?
-
listItemStyle style for every list item
final
- onBack → VoidCallback?
-
onBack callback triggered on closing this screen
final
- onError → OnError?
-
onError callback triggered in case any error happens when fetching users
final
- privateGroupIcon → Widget?
-
privateGroupIcon provides icon in status indicator for private group
final
- protectedGroupIcon → Widget?
-
protectedGroupIcon provides icon in status indicator for protected group
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCloseButton → bool?
-
showCloseButton toggles visibility for close button
final
- stateCallBack → void Function(CometChatDetailsController)?
-
stateCallBack a call back to give state to its parent
final
- statusIndicatorStyle → StatusIndicatorStyle?
-
statusIndicatorStyle set style for status indicator
final
- subtitleView → Widget? Function({BuildContext context, Group? group, User? user})?
-
subtitleView to set subtitle for each conversation
final
- theme → CometChatTheme?
-
theme custom theme
final
- title → String?
-
to pass CometChatDetails header text use title
final
- transferOwnershipConfiguration → TransferOwnershipConfiguration?
-
configurations for opening transfer ownership
final
Methods
-
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