SDKsFlutter
Create a text message
Create a text message with the OpenIM Flutter SDK.
The message factory Future returns a Message waiting to be sent. It does not send the message or trigger the new-message listener.
final message = await OpenIM.iMManager.messageManager
.createTextMessage(text: text.trim());Validate whitespace, length, and content rules first. Then pass the object to Send a message.
Was this page helpful?