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