ChannelClientState class

The class that handles the state of the channel listening to the events

Constructors

ChannelClientState(Channel _channel, ChannelState channelState)
Creates a new instance listening to events and updating the state

Properties

channelState ChannelState
The channel state related to this client
read-only
channelStateStream Stream<ChannelState>
The channel state related to this client as a stream
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
lastMessage Message
Get channel last message
read-only
lastMessageStream Stream<Message>
Get channel last message
read-only
members List<Member>
Channel members list
read-only
membersStream Stream<List<Member>>
Channel members list as a stream
read-only
messages List<Message>
Channel message list
read-only
messagesStream Stream<List<Message>>
Channel message list as a stream
read-only
read List<Read>
Channel read list
read-only
readStream Stream<List<Read>>
Channel read list as a stream
read-only
retryQueue ↔ RetryQueue
The retry queue associated to this channel
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
threads Map<String, List<Message>>
The channel threads related to this channel
read-only
threadsStream Stream<Map<String, List<Message>>>
The channel threads related to this channel as a stream
read-only
typingEvents List<User>
Channel related typing users last value
read-only
typingEventsStream Stream<List<User>>
Channel related typing users stream
read-only
unreadCount int
Unread count getter
read-only
watcherCount int
Channel watcher count
read-only
watcherCountStream Stream<int>
Channel watcher count as a stream
read-only
watchers List<User>
Channel watchers list
read-only
watchersStream Stream<List<User>>
Channel watchers list as a stream
read-only

Methods

addMessage(Message message) → void
Add a message to this channel
dispose() → void
Call this method to dispose this object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
retryFailedMessages() Future<void>
Retry failed message
toString() String
Returns a string representation of this object.
inherited
truncate() → void
Delete all channel messages
updateChannelState(ChannelState updatedState) → void
Update channelState with updated information
updateThreadInfo(String parentId, List<Message> messages) → void
Update threads with updated information about messages

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited