EMFileMessageBody constructor Null safety

EMFileMessageBody(
  1. {required String localPath,
  2. String? displayName,
  3. int? fileSize,
  4. MessageType type = MessageType.FILE}
)

Creates a message with an attachment.

Param localPath The path of the image file.

Param displayName The file name.

Param fileSize The size of the file in bytes.

Param type The file type.

Implementation

EMFileMessageBody({
  required this.localPath,
  this.displayName,
  this.fileSize,
  MessageType type = MessageType.FILE,
}) : super(type: type);