ContactGraphQlMixin mixin

ChatContacts related functionality.

Mixin applications

Properties

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

Methods

changeContactName(ChatContactId id, UserName name) Future<ChatContactEventsVersionedMixin>
Updates the name of the specified ChatContact in the authenticated MyUser's address book.
chatContact(ChatContactId id) Future<GetContact$Query>
Returns a ChatContact by its ID.
chatContacts({int? first, ChatContactsCursor? after, int? last, ChatContactsCursor? before, bool noFavorite = false}) Future<Contacts$Query$ChatContacts>
Returns address book of the authenticated MyUser ordered alphabetically by ChatContact names.
contactsEvents(ChatContactsListVersion? ver()) Stream<QueryResult<Object?>>
Subscribes to ChatContactEvents of all ChatContacts of the authenticated MyUser.
createChatContact({required UserName name, List<ChatContactRecord>? records}) Future<ChatContactEventsVersionedMixin>
Creates a new ChatContact in the authenticated MyUser's address book.
deleteChatContact(ChatContactId id) Future<DeleteChatContact$Mutation>
Deletes the specified ChatContact from the authenticated MyUser's address book.
favoriteChatContact(ChatContactId id, ChatContactFavoritePosition position) Future<ChatContactEventsVersionedMixin?>
Marks the specified ChatContact as favorited for the authenticated MyUser and sets its position in the favorites list.
favoriteChatContacts({int? first, FavoriteChatContactsCursor? after, int? last, FavoriteChatContactsCursor? before}) Future<FavoriteContacts$Query$FavoriteChatContacts>
Returns favorited ChatContacts of the authenticated MyUser ordered by the custom order of MyUser's favorites list (using ChatContact.favoritePosition field).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchChatContacts({UserName? name, UserEmail? email, UserPhone? phone, int? first, ChatContactsCursor? after, int? last, ChatContactsCursor? before}) Future<SearchChatContacts$Query>
Searches ChatContacts by the given criteria.
toString() String
A string representation of this object.
inherited
unfavoriteChatContact(ChatContactId id) Future<ChatContactEventsVersionedMixin?>
Removes the specified ChatContact from the favorites list of the authenticated MyUser.

Operators

operator ==(Object other) bool
The equality operator.
inherited