FileMessageParams.withMessage constructor
FileMessageParams.withMessage(
- FileMessage fileMessage, {
- bool? deepCopy,
NOTE: should use this constructor when updating message
Implementation
FileMessageParams.withMessage(FileMessage fileMessage, {bool? deepCopy})
: uploadFile = FileInfo.fromUrl(
url: fileMessage.url,
mimeType: fileMessage.type,
fileSize: fileMessage.size,
name: fileMessage.name,
),
super.withMessage(fileMessage, deepCopy: deepCopy);