ChatFileMessageBody constructor
- required String localPath,
- String? displayName,
- int? fileSize,
- 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
ChatFileMessageBody({
required this.localPath,
this.displayName,
this.fileSize,
MessageType type = MessageType.FILE,
}) : super(type: type);