getMessage

abstract fun getMessage(id: String): Flow<Message?>(source)

Retrieves the message with the specified ID.

Return

A Flow that emits the message with the specified ID, or null if no such message exists. The Flow completes when the message is successfully retrieved, or when an error occurs.

Parameters

id

The unique ID of the message.