ChunkPiece class final

A piece of text produced by a chunker, before it becomes a chunk.

Annotations
  • @immutable

Constructors

ChunkPiece({required String text, String? heading, int? startOffset, JsonMap metadata = const <String, Object?>{}})
Creates a piece.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
heading String?
The section this piece sits under, when the format has sections.
final
metadata → JsonMap
Anything the chunker learned that is worth filtering on.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startOffset int?
Where it starts in the source document.
final
text String
The text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited