RxChat class abstract

Unified reactive Chat entity with its ChatItems.

Implemented types
Implementers
Available extensions

Constructors

RxChat()

Properties

avatar → Rx<Avatar?>
Reactive Avatar of this chat.
no setter
blocked → bool
Indicates whether this RxChat is blocked or not.
no setter
callCover → UserCallCover?
Returns an actual UserCallCover of this RxChat.
no setter
chat → Rx<Chat>
Reactive value of a Chat this RxChat represents.
no setter
draft → Rx<ChatMessage?>
ChatMessage being a draft in this chat.
no setter
firstUnread → Rx<ChatItem>?
Returns the first ChatItem unread by the currently authenticated MyUser in this chat.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasNext → RxBool
Indicates whether the messages have next page.
no setter
hasPrevious → RxBool
Indicates whether the messages have previous page.
no setter
id → ChatId
Returns a ChatId of the chat.
no setter
inCall → RxBool
Indicates whether this chat has an OngoingCall active on this device.
no setter
lastItem → ChatItem?
Returns the last ChatItem of this RxChat.
no setter
me → UserId?
Returns MyUser's UserId.
no setter
members → Paginated<UserId, RxChatMember>
Paginated of Users being members of this chat.
no setter
messages → RxObsList<Rx<ChatItem>>
Observable list of ChatItems of the chat.
no setter
nextLoading → RxBool
Indicates whether a next page of the messages is loading.
no setter
previousLoading → RxBool
Indicates whether a previous page of the messages is loading.
no setter
reads → RxList<LastChatRead>
LastChatReads of this chat.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Rx<RxStatus>
Status of the messages fetching.
no setter
typingUsers → RxList<User>
List of Users currently typing in this chat.
no setter
unreadCount → RxInt
Count of ChatItems unread by the authenticated MyUser in this RxChat.
no setter
updates → Stream<void>
Listens to the updates of this RxChat while the returned Stream is listened to.
no setter

Methods

around({ChatItemId? item, ChatItemId? reply, ChatItemId? forward, ChatMessageText? withText}) → Future<Paginated<ChatItemId, Rx<ChatItem>>?>
Fetches the Paginated page around the item, if specified, or messages around the firstUnread otherwise.
attachments({ChatItemId? item}) → Paginated<ChatItemId, Rx<ChatItem>>
Returns the Paginated of ChatItems having any Attachments posted in this chat around the provided item, if any.
compareTo(RxChat other) → int
Compares this object to another object.
inherited
ensureDraft() → Future<void>
Ensures the draft is initialized.
next() → Future<void>
Fetches the next messages page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous() → Future<void>
Fetches the previous messages page.
remove(ChatItemId itemId) → Future<void>
Removes a ChatItem identified by its id.
setDraft({ChatMessageText? text, List<Attachment> attachments = const [], List<ChatItem> repliesTo = const []}) → Future<void>
Updates the draft with the provided text, attachments and repliesTo.
single(ChatItemId item) → Future<Paginated<ChatItemId, Rx<ChatItem>>?>
Fetches a single ChatItem in the Paginated page identified by the provided id.
title({bool withDeletedLabel = true}) → String

Available on RxChat, provided by the ChatRxExt extension

Returns text represented title of this RxChat.
toString() → String
A string representation of this object.
inherited
updateAttachments(ChatItem item) → Future<void>
Updates the Attachments of the specified item to be up-to-date.
updateAvatar() → Future<void>
Updates the avatar of the chat.

Operators

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