ChatVideoMessageBody constructor

ChatVideoMessageBody(
  1. {required String localPath,
  2. String? displayName,
  3. int? duration = 0,
  4. int? fileSize,
  5. String? thumbnailLocalPath,
  6. double? height,
  7. double? width}
)

Creates a video message.

Param localPath The local path of the video file.

Param displayName The video name.

Param duration The video duration in seconds.

Param fileSize The size of the video file in bytes.

Param thumbnailLocalPath The local path of the video thumbnail.

Param height The video height in pixels.

Param width The video width in pixels.

Implementation

ChatVideoMessageBody({
  required String localPath,
  String? displayName,
  this.duration = 0,
  int? fileSize,
  this.thumbnailLocalPath,
  this.height,
  this.width,
}) : super(
        localPath: localPath,
        displayName: displayName,
        fileSize: fileSize,
        type: MessageType.VIDEO,
      );