Browse SDKs · Flutter
SDKsFlutter

Create an image message

Create an image message from a platform-readable path with the OpenIM Flutter SDK.

Copy
final message = await OpenIM.iMManager.messageManager
    .createImageMessage(imagePath: imagePath);

The path must be an application path readable on the current platform. The Future creates the object only; the regular send flow uploads the image.