CometChatDetails constructor
CometChatDetails({
- Key? key,
- User? user,
- Group? group,
- String? title,
- DetailsStyle? detailsStyle,
- Widget? chatAvatar({})?,
- Widget? chatConversationItem({})?,
- bool? showCloseButton = true,
- Icon? closeButtonIcon,
- List<
CometChatDetailsTemplate> ? data()?, - GroupMembersConfiguration? groupMembersConfiguration,
- AddMemberConfiguration? addMemberConfiguration,
- TransferOwnershipConfiguration? transferOwnershipConfiguration,
- BannedMemberConfiguration? bannedMemberConfiguration,
- void stateCallBack()?,
- bool disableUsersPresence = false,
- List<
Widget> ? appBarOptions, - ListItemStyle? listItemStyle,
- AvatarStyle? avatarStyle,
- StatusIndicatorStyle? statusIndicatorStyle,
- Widget? subtitleView({
- BuildContext context,
- Group? group,
- User? user,
- bool? hideProfile,
- Widget? customProfileView,
- Widget? protectedGroupIcon,
- Widget? privateGroupIcon,
- CometChatTheme? theme,
- VoidCallback? onBack,
- ConfirmDialogStyle? leaveGroupDialogStyle,
- OnError? onError,
Implementation
CometChatDetails(
{super.key,
User? user,
Group? group,
this.title,
this.detailsStyle,
this.chatAvatar,
this.chatConversationItem,
this.showCloseButton = true,
this.closeButtonIcon,
List<CometChatDetailsTemplate>? Function(Group? group, User? user)? data,
GroupMembersConfiguration? groupMembersConfiguration,
AddMemberConfiguration? addMemberConfiguration,
TransferOwnershipConfiguration? transferOwnershipConfiguration,
BannedMemberConfiguration? bannedMemberConfiguration,
void Function(CometChatDetailsController)? stateCallBack,
this.disableUsersPresence = false,
this.appBarOptions,
this.listItemStyle,
this.avatarStyle,
this.statusIndicatorStyle,
this.subtitleView,
this.hideProfile,
this.customProfileView,
this.protectedGroupIcon,
this.privateGroupIcon,
this.theme,
this.onBack,
ConfirmDialogStyle? leaveGroupDialogStyle,
OnError? onError})
: _cometChatDetailsController = CometChatDetailsController(user, group,
stateCallBack: stateCallBack,
addMemberConfiguration: addMemberConfiguration,
transferOwnershipConfiguration: transferOwnershipConfiguration,
data: data,
leaveGroupDialogStyle: leaveGroupDialogStyle,
onError: onError,
disableUsersPresence: disableUsersPresence,
groupMembersConfiguration: groupMembersConfiguration,
bannedMemberConfiguration: bannedMemberConfiguration
);