CometChatTransferOwnership constructor

CometChatTransferOwnership({
  1. Key? key,
  2. required Group group,
  3. String? title,
  4. String? searchPlaceholder,
  5. bool? hideSearch,
  6. Widget? searchBoxIcon,
  7. bool? showBackButton,
  8. Widget? backButton,
  9. TransferOwnershipStyle? transferOwnershipStyle,
  10. dynamic onTransferOwnership(
    1. GroupMember,
    2. Group
    )?,
  11. bool? disableUsersPresence,
  12. GroupMembersRequestBuilder? groupMembersRequestBuilder,
  13. GroupMembersBuilderProtocol? groupMembersProtocol,
  14. Widget? subtitleView(
    1. BuildContext,
    2. GroupMember
    )?,
  15. bool? hideSeparator,
  16. GroupMembersStyle? groupMemberStyle,
  17. String? emptyStateText,
  18. String? errorStateText,
  19. WidgetBuilder? loadingStateView,
  20. WidgetBuilder? emptyStateView,
  21. WidgetBuilder? errorStateView,
  22. ListItemStyle? listItemStyle,
  23. AvatarStyle? avatarStyle,
  24. StatusIndicatorStyle? statusIndicatorStyle,
  25. Widget? selectIcon,
  26. Widget? submitIcon,
  27. CometChatTheme? theme,
  28. VoidCallback? onBack,
  29. OnError? onError,
  30. Widget listItemView(
    1. GroupMember
    )?,
})

Implementation

CometChatTransferOwnership(
    {super.key,
    required Group group,
    this.title,
    this.searchPlaceholder,
    this.hideSearch,
    this.searchBoxIcon,
    this.showBackButton,
    this.backButton,
    this.transferOwnershipStyle,
    Function(GroupMember, Group)? onTransferOwnership,
    this.disableUsersPresence,
    this.groupMembersRequestBuilder,
    this.groupMembersProtocol,
    this.subtitleView,
    this.hideSeparator,
    this.groupMemberStyle,
    this.emptyStateText,
    this.errorStateText,
    this.loadingStateView,
    this.emptyStateView,
    this.errorStateView,
    this.listItemStyle,
    this.avatarStyle,
    this.statusIndicatorStyle,
    this.selectIcon,
    this.submitIcon,
    this.theme,
    this.onBack,
    OnError? onError,
    this.listItemView})
    : _cometChatTransferOwnershipController =
          CometChatTransferOwnershipController(
              group: group,
              onTransferOwnership: onTransferOwnership,
              onError: onError);