ChatImageMessageBody constructor
Creates an image message body with an image file.
Param localPath
The local path of the image file.
Param displayName
The image name.
Param thumbnailLocalPath The local path of the image thumbnail.
Param sendOriginalImage The original image included in the image message to be sent.
Param fileSize
The size of the image file in bytes.
Param width The image width in pixels.
Param height The image height in pixels.
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,
);