TransferOwnershipConfiguration class

TransferOwnershipConfiguration is a data class that has configuration properties to customize the functionality and appearance of CometChatTransferOwnership

TransferOwnershipConfiguration(
       avatarStyle: AvatarStyle(),
       listItemStyle: ListItemStyle(),
       statusIndicatorStyle: StatusIndicatorStyle(),
       groupMemberStyle: GroupMembersStyle(),
       transferOwnershipStyle:
           TransferOwnershipStyle(memberScopeStyle: TextStyle())
           );

Constructors

TransferOwnershipConfiguration({String? title, String? searchPlaceholder, bool? hideSearch, bool? showBackButton, Widget? backButton, dynamic onTransferOwnership(GroupMember, Group)?, bool disableUsersPresence = false, Widget? searchBoxIcon, GroupMembersRequestBuilder? groupMembersRequestBuilder, GroupMembersBuilderProtocol? groupMembersProtocol, Widget? subtitleView(BuildContext, GroupMember)?, bool? hideSeparator, GroupMembersStyle? groupMemberStyle, String? emptyStateText, String? errorStateText, WidgetBuilder? loadingStateView, WidgetBuilder? emptyStateView, WidgetBuilder? errorStateView, ListItemStyle? listItemStyle, AvatarStyle? avatarStyle, StatusIndicatorStyle? statusIndicatorStyle, TransferOwnershipStyle? transferOwnershipStyle, Widget? selectIcon, Widget? submitIcon, CometChatTheme? theme, VoidCallback? onBack, OnError? onError, Widget listItemView(GroupMember)?})
const

Properties

avatarStyle AvatarStyle?
avatarStyle set style for avatar
final
backButton Widget?
backButton back button
final
disableUsersPresence bool
disableUsersPresence controls visibility of status indicator
final
emptyStateText String?
emptyStateText text to be displayed when the list is empty
final
emptyStateView WidgetBuilder?
emptyStateView returns view fow empty state
final
errorStateText String?
errorStateText text to be displayed when error occur
final
errorStateView WidgetBuilder?
errorStateView returns view fow error state behind the dialog
final
groupMembersProtocol GroupMembersBuilderProtocol?
groupMembersProtocol sets custom request builder protocol
final
groupMembersRequestBuilder GroupMembersRequestBuilder?
groupMembersRequestBuilder set custom request builder
final
groupMemberStyle GroupMembersStyle?
groupMemberStyle provides style to CometChatGroupMembers
final
hashCode int
The hash code for this object.
no setterinherited
hideSearch bool?
hideSearch switch on/ff search input
final
hideSeparator bool?
hideSeparator toggle visibility of separator
final
listItemStyle ListItemStyle?
listItemStyle style for every list item
final
listItemView Widget Function(GroupMember)?
listItemView set custom view for each groupMember
final
loadingStateView WidgetBuilder?
loadingStateView returns view fow loading state
final
onBack VoidCallback?
onBack callback triggered on closing this screen
final
onError OnError?
onError callback triggered in case any error happens when transferring ownership
final
onTransferOwnership → dynamic Function(GroupMember, Group)?
onTransferOwnership overrides default on selection functionality
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBoxIcon Widget?
searchBoxIcon replace search icon
final
searchPlaceholder String?
searchPlaceholder placeholder text of search input
final
selectIcon Widget?
selectIcon will override the default selection icon
final
showBackButton bool?
showBackButton switch on/off back button
final
statusIndicatorStyle StatusIndicatorStyle?
statusIndicatorStyle set style for status indicator
final
submitIcon Widget?
submitIcon will override the default selection complete icon
final
subtitleView Widget? Function(BuildContext, GroupMember)?
subtitleView to set subtitle for each groupMember
final
theme CometChatTheme?
theme custom theme
final
title String?
title Title of the component
final
transferOwnershipStyle TransferOwnershipStyle?
transferOwnershipStyle consists of all styling properties
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