concat method
Concatenates the current document with another document.
Implementation
Document concat(final Document other) {
return Document(
id: id ?? other.id,
pageContent: '$pageContent${other.pageContent}',
metadata: {...metadata, ...other.metadata},
);
}