Chunk class

Represents a single chunk of text content.

A chunk is a portion of text that has been segmented from a larger document. Each chunk maintains metadata about its position in the original document.

Constructors

Chunk.new(int id, int start, int length, String content)
Creates a new chunk with the specified parameters.
const

Properties

content String
The actual text content of the chunk
final
hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier for the chunk
final
length int
Length of the chunk in characters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
Starting position of the chunk in the original document
final

Methods

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

Operators

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