ChannelClientState class Null safety

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
currentUserRead Read?
Channel read for the logged in user.
read-only
currentUserReadStream Stream<Read?>
Channel read for the logged in user as a stream.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isUpToDate bool
Flag which indicates if ChannelClientState contain latest/recent messages or not. [...]
read / write
isUpToDateStream Stream<bool>
isUpToDate flag count as a stream.
read-only
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
pinnedMessages List<Message>
Channel pinned message list.
read-only
pinnedMessagesStream Stream<List<Message>>
Channel pinned 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
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 Map<User, Event>
Channel related typing users last value.
read-only
typingEventsStream Stream<Map<User, Event>>
Channel related typing users stream.
read-only
unreadCount int
Unread count getter.
read / write
unreadCountStream Stream<int>
Unread count getter as a stream.
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 channelState.
dispose() → void
Call this method to dispose this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeMessage(Message message, {bool hardDelete = false}) → void
Remove a message from this channelState.
retryFailedMessages() Future<void>
Retry failed message.
toString() String
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 ==(Object other) bool
The equality operator. [...]
inherited