Document class
Interface for interacting with a document.
- Annotations
-
- @immutable
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String?
-
Optional ID for the document.
final
-
metadata
→ Map<
String, dynamic> -
The metadata of the document.
final
- pageContent → String
-
The text content of the document.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
concat(
Document other) → Document - Concatenates the current document with another document.
-
copyWith(
{String? id, String? pageContent, Map< String, dynamic> ? metadata}) → Document - Creates a copy of the document.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the document to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Document other) → bool -
The equality operator.
override