CometChatDetails constructor

CometChatDetails({
  1. Key? key,
  2. User? user,
  3. Group? group,
  4. String? title,
  5. DetailsStyle? detailsStyle,
  6. bool? showCloseButton = true,
  7. Icon? closeButtonIcon,
  8. List<CometChatDetailsTemplate>? data(
    1. Group? group,
    2. User? user
    )?,
  9. GroupMembersConfiguration? groupMembersConfiguration,
  10. AddMemberConfiguration? addMemberConfiguration,
  11. TransferOwnershipConfiguration? transferOwnershipConfiguration,
  12. BannedMemberConfiguration? bannedMemberConfiguration,
  13. void stateCallBack(
    1. CometChatDetailsController
    )?,
  14. bool disableUsersPresence = false,
  15. List<Widget>? appBarOptions,
  16. ListItemStyle? listItemStyle,
  17. AvatarStyle? avatarStyle,
  18. StatusIndicatorStyle? statusIndicatorStyle,
  19. Widget? subtitleView({
    1. BuildContext context,
    2. Group? group,
    3. User? user,
    })?,
  20. bool? hideProfile,
  21. Widget? customProfileView,
  22. Widget? protectedGroupIcon,
  23. Widget? privateGroupIcon,
  24. CometChatTheme? theme,
  25. VoidCallback? onBack,
  26. ConfirmDialogStyle? leaveGroupDialogStyle,
  27. OnError? onError,
})

Implementation

CometChatDetails(
    {super.key,
    User? user,
    Group? group,
    this.title,
    this.detailsStyle,
    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);