DummyRxChat class
Dummy implementation of RxChat.
Constructors
Properties
-
avatar
→ Rx<
Avatar?> -
Reactive
Avatar
of this chat.no setteroverride - blocked → bool
-
Indicates whether this RxChat is blocked or not.
no setterinherited
- callCover → UserCallCover?
-
Returns an actual UserCallCover of this RxChat.
no setteroverride
-
chat
→ Rx<
Chat> -
Reactive value of a
Chat
this RxChat represents.final -
draft
→ Rx<
ChatMessage?> -
ChatMessage
being a draft in this chat.no setteroverride -
firstUnread
→ Rx<
ChatItem> ? -
Returns the first
ChatItem
unread by the currently authenticated MyUser in this chat.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- hasNext → RxBool
-
Indicates whether the messages have next page.
no setteroverride
- hasPrevious → RxBool
-
Indicates whether the messages have previous page.
no setteroverride
- id → ChatId
-
Returns a ChatId of the chat.
no setterinherited
- inCall → RxBool
-
Indicates whether this chat has an OngoingCall active on this device.
no setteroverride
- lastItem → ChatItem?
-
Returns the last ChatItem of this RxChat.
no setteroverride
- me → UserId?
-
Returns MyUser's UserId.
no setteroverride
-
members
→ Paginated<
UserId, RxChatMember> -
Paginated of Users being members of this chat.
no setteroverride
-
messages
→ RxObsList<
Rx< ChatItem> > -
Observable list of ChatItems of the chat.
no setteroverride
- nextLoading → RxBool
-
Indicates whether a next page of the messages is loading.
no setteroverride
- previousLoading → RxBool
-
Indicates whether a previous page of the messages is loading.
no setteroverride
-
reads
→ RxList<
LastChatRead> -
LastChatRead
s of this chat.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ Rx<
RxStatus> -
Status of the messages fetching.
no setteroverride
- title → String
-
Text representing the title of this chat.
no setteroverride
-
typingUsers
→ RxList<
User> -
List of
User
s currently typing in this chat.no setteroverride - unreadCount → RxInt
-
Count of ChatItems unread by the authenticated MyUser in this
RxChat.
no setteroverride
-
updates
→ Stream<
void> -
Listens to the updates of this RxChat while the returned Stream is
listened to.
no setteroverride
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.override -
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.override -
compareTo(
RxChat other) → int -
Compares this object to another object.
override
-
ensureDraft(
) → Future< void> -
Ensures the draft is initialized.
override
-
next(
) → Future< void> -
Fetches the next messages page.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
) → Future< void> -
Fetches the previous messages page.
override
-
remove(
ChatItemId itemId) → Future< void> -
Removes a ChatItem identified by its id.
override
-
setDraft(
{ChatMessageText? text, List< Attachment> attachments = const [], List<ChatItem> repliesTo = const []}) → Future<void> -
Updates the draft with the provided
text
,attachments
andrepliesTo
.override -
single(
ChatItemId item) → Future< Paginated< ChatItemId, Rx< ?>ChatItem> > -
Fetches a single ChatItem in the Paginated page identified by the
provided id.
override
-
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.override -
updateAvatar(
) → Future< void> -
Updates the avatar of the chat.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited