Document constructor

const Document({
  1. String? id,
  2. required String pageContent,
  3. Map<String, dynamic> metadata = const {},
})

Interface for interacting with a document.

Implementation

const Document({
  this.id,
  required this.pageContent,
  this.metadata = const {},
});