ChatImageMessageBody constructor

ChatImageMessageBody(
  1. {required String localPath,
  2. String? displayName,
  3. String? thumbnailLocalPath,
  4. bool sendOriginalImage = false,
  5. int? fileSize,
  6. double? width,
  7. double? height}
)

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,
      );