PreviousMessageListQuery class

A query object to retrieve previous messages

Inheritance

Constructors

PreviousMessageListQuery({required ChannelType channelType, required String channelUrl, Chat? chat})

Properties

channelType ChannelType
The type of the channel to get messages from.
read / write
channelUrl String
The url of the channel to get messages from.
read / write
chat → Chat
finalinherited
customTypesFilter List<String>
The custom type filter of the message.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
hasNext bool
Whether there is a next page.
read / writeinherited
includeParentMessageInfo bool
Determines whether to include current message's parent information
read / write
isLoading bool
Whether the current query is in communication progress with server.
read / writeinherited
limit int
The maximum number of items per queried page.
read / writeinherited
messageTimestamp int?
The time of a request. After each call of next, this value will change to the oldest BaseMessage.createdAt value of the message that have been fetched.
read / write
messageTypeFilter MessageTypeFilter
Message type filter. MessageTypeFilter
read / write
replyType ReplyType
Determines message's reply type
read / write
reverse bool
Indicates whether the queried result will be reversed. If true, the result will be returned by creation time descending order.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
senderIdsFilter List<String>
Sender user ids filter.
read / write
showSubChannelMessagesOnly bool
If set to true, only messages that belong to current user's subchannel is fetched. If set to false, all messages will be fetched. Default is false. Takes effect only when the requested channel is a dynamically partitioned open channel.
read / write
token String?
read / writeinherited

Methods

next() Future<List<BaseMessage>>
Gets the list of next items.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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