Chat Flutter v3
Chat Flutter
Chat
Flutter
Home
/
Chat
/
Flutter
/
Message
You can retrieve a specific message in an open or group channel by creating and passing the MessageRetrievalParams
object as an argument into the getMessage()
method.
Note: Starting from Flutter Chat SDK 3.1.0,
MessageRetrievalParams
requires thechannelType
,channelUrl
, andmessageId
parameters.
This table only contains properties shown in the code above. To see the comprehensive list of all available methods and properties, see MessageRetrievalParams
.
Property name | Type | Description |
---|---|---|
channelUrl | String | Specifies the URL of the channel. |
channelType | ChannelType | Specifies the type of the channel. |
messageId | Int | Specifies the unique ID of the message. |
You can retrieve and view the last message of a group channel.