DetailUtils class

DetailUtils is a Utility class that provides the default options and templates available in CometChatDetails which allows users to block and unblock other users group members to view, add, ban other members

Constructors

DetailUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

getAddMembersOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getBannedMemberOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getBanOption({CometChatTheme? theme}) CometChatGroupMemberOption
getBlockUserOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getDefaultDetailsTemplates(BuildContext context, User? loggedInUser, {User? user, Group? group}) List<CometChatDetailsTemplate>
getDefaultGroupMemberOptions({User? loggedInUser, Group? group, GroupMember? member, CometChatTheme? theme}) List<CometChatGroupMemberOption>
getDeleteGroupOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getDeleteOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getKickOption({CometChatTheme? theme}) CometChatGroupMemberOption
getLeaveGroupOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getLeaveOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getPrimaryDetailsTemplate(BuildContext context, User? loggedInUser, User? user, Group? group, {CometChatTheme? theme}) CometChatDetailsTemplate?
getSecondaryDetailsTemplate(BuildContext context, User? loggedInUser, User? user, Group? group, {CometChatTheme? theme}) CometChatDetailsTemplate?
getUnBlockUserOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getViewMemberOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
getViewProfileOption(BuildContext context, {CometChatTheme? theme}) CometChatDetailsOption
validateDetailOptions({required String loggedInUserScope, required String optionId}) → dynamic
validateGroupMemberOptions({required String loggedInUserScope, String memberScope = GroupMemberScope.participant, required String optionId}) → dynamic
validateUserOptions(User? loggedInUser, User? user, String id) bool