CometChatTransferOwnership class
CometChatTransferOwnership is a component that internally uses CometChatGroupMembers that displays a list of group members to whom the ownership of the group they are part of can be transferred to
TransferOwnershipConfiguration(
avatarStyle: AvatarStyle(),
listItemStyle: ListItemStyle(),
statusIndicatorStyle: StatusIndicatorStyle(),
groupMemberStyle: GroupMembersStyle(),
transferOwnershipStyle:
TransferOwnershipStyle(memberScopeStyle: TextStyle())
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CometChatTransferOwnership
Constructors
- CometChatTransferOwnership({Key? key, required Group group, String? title, String? searchPlaceholder, bool? hideSearch, Widget? searchBoxIcon, bool? showBackButton, Widget? backButton, TransferOwnershipStyle? transferOwnershipStyle, dynamic onTransferOwnership(GroupMember, Group)?, bool? disableUsersPresence, 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, Widget? selectIcon, Widget? submitIcon, CometChatTheme? theme, VoidCallback? onBack, OnError? onError, Widget listItemView(GroupMember)?})
Properties
- avatarStyle → AvatarStyle?
-
avatarStyle set style for avatar
final
- backButton → Widget?
-
backButton back button
final
- disableUsersPresence → bool?
-
disableUsersPresence controls visibility of user online 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/off search input
final
- hideSeparator → bool?
-
hideSeparator toggle visibility of separator
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- 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
- 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
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited