EMImageMessageBody class

图片消息体类。

Inheritance

Constructors

EMImageMessageBody({required String localPath, String? displayName, String? thumbnailLocalPath, bool sendOriginalImage = false, int? fileSize, double? width, double? height})
用图片文件创建一个图片消息体。
EMImageMessageBody.fromJson({required Map map})

Properties

displayName String?
附件的名称。
read / writeinherited
fileSize int?
附件的大小,以字节为单位。
read / writeinherited
fileStatus DownloadStatus
附件的下载状态。
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
height double?
图片高度,单位为像素。
read / write
localPath String
附件的本地路径。
latefinalinherited
remotePath String?
附件的服务器路径。
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
secret String?
获取附件的密钥。
read / writeinherited
sendOriginalImage bool
设置发送图片时,是否发送原图。
read / write
thumbnailLocalPath String?
缩略图的本地路径或者字符串形式的资源标识符。
read / write
thumbnailRemotePath String?
缩略图的服务器路径。
read / write
thumbnailSecret String?
设置访问缩略图的密钥。下载缩略图时用户需要提供密钥进行校验。
read / write
thumbnailStatus DownloadStatus
缩略图的下载状态。
read / write
type MessageType
获取消息类型。
read / writeinherited
width double?
图片宽度,单位为像素。
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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