ChatImageMessageBody constructor
ChatImageMessageBody({})
用图片文件创建一个图片消息体。
Param localPath
图片文件本地路径。
Param displayName
文件名。
Param thumbnailLocalPath
图片缩略图本地路径。
Param sendOriginalImage
发送图片消息时的原始图片文件。
Param fileSize
图片文件大小,单位是字节。
Param width
图片宽度,单位为像素。
Param height
图片高度,单位为像素。
Implementation
ChatImageMessageBody({
required String localPath,
String? displayName,
this.thumbnailLocalPath,
this.sendOriginalImage = false,
int? fileSize,
this.width,
this.height,
}) : super(
localPath: localPath,
displayName: displayName,
fileSize: fileSize,
type: MessageType.IMAGE,
);