ChatImageMessageBody class

The image message body class.



ChatImageMessageBody({required String localPath, String? displayName, String? thumbnailLocalPath, bool sendOriginalImage = false, int? fileSize, double? width, double? height})
Creates an image message body with an image file.


displayName String?
The attachment name.
read / writeinherited
fileSize int?
The size of the attachment in bytes.
read / writeinherited
fileStatus DownloadStatus
The download status of the attachment.
read / writeinherited
hashCode int
The hash code for this object.
height double?
The image height in pixels.
read / write
localPath String
The local path of the attachment.
remotePath String?
The attachment path in the server.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
secret String?
The token used to get the attachment.
read / writeinherited
sendOriginalImage bool
Whether to send the original image.
read / write
thumbnailLocalPath String?
The local path or the URI (a string) of the thumbnail.
read / write
thumbnailRemotePath String?
The URL of the thumbnail on the server.
read / write
thumbnailSecret String?
The secret to access the thumbnail. A secret is required for verification for thumbnail download.
read / write
thumbnailStatus DownloadStatus
The download status of the thumbnail.
read / write
type MessageType
Gets the chat message type.
read / writeinherited
width double?
The image width in pixels.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


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