FileMessageParams.withMessage constructor Null safety

FileMessageParams.withMessage(
  1. FileMessage fileMessage,
  2. {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);