CometChatDetails constructor

CometChatDetails({
  1. Key? key,
  2. User? user,
  3. Group? group,
  4. String? title,
  5. DetailsStyle? detailsStyle,
  6. Widget? chatAvatar({
    1. String? name,
    2. required bool online,
    3. Color? rimColor,
    4. double? size,
    5. required String url,
    })?,
  7. Widget? chatConversationItem({
    1. required String avatarName,
    2. String? avatarUrl,
    3. bool? isGroupChat,
    4. String? lastAction,
    5. bool? online,
    6. String? subtitle,
    7. DateTime? time,
    8. required String title,
    9. int? unreadCount,
    })?,
  8. bool? showCloseButton = true,
  9. Icon? closeButtonIcon,
  10. List<CometChatDetailsTemplate>? data(
    1. Group? group,
    2. User? user
    )?,
  11. GroupMembersConfiguration? groupMembersConfiguration,
  12. AddMemberConfiguration? addMemberConfiguration,
  13. TransferOwnershipConfiguration? transferOwnershipConfiguration,
  14. BannedMemberConfiguration? bannedMemberConfiguration,
  15. void stateCallBack(
    1. CometChatDetailsController
    )?,
  16. bool disableUsersPresence = false,
  17. List<Widget>? appBarOptions,
  18. ListItemStyle? listItemStyle,
  19. AvatarStyle? avatarStyle,
  20. StatusIndicatorStyle? statusIndicatorStyle,
  21. Widget? subtitleView({
    1. BuildContext context,
    2. Group? group,
    3. User? user,
    })?,
  22. bool? hideProfile,
  23. Widget? customProfileView,
  24. Widget? protectedGroupIcon,
  25. Widget? privateGroupIcon,
  26. CometChatTheme? theme,
  27. VoidCallback? onBack,
  28. ConfirmDialogStyle? leaveGroupDialogStyle,
  29. 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
);