concat method

Document concat(
  1. Document other
)

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},
  );
}