Chunk class

Available extensions
Annotations

Constructors

Chunk({required int index, required String content, ChunkModality modality = ChunkModality.text, VectorValue? vector, Map<String, dynamic> metadata = const {}, String postContent = "", int charStart = 0, int charEnd = 0, int lod = 0, List<int>? down, int? up})
const

Properties

charEnd int
final
charStart int
final
content String
final
down List<int>?
final
fullContent String
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
final
lod int
final
metadata Map<String, dynamic>
final
modality ChunkModality
final
postContent String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to → _a

Available on _u, provided by the $Chunk extension

no setter
up int?
final
vector → VectorValue?
final

Methods

copyWith({_9? index, _9? deltaIndex, _7? content, _1y? modality, _19 resetModality = _F, _1z? vector, _19 deleteVector = _F, _1h? metadata, _19 resetMetadata = _F, _7? postContent, _19 resetPostContent = _F, _9? charStart, _19 resetCharStart = _F, _9? deltaCharStart, _9? charEnd, _19 resetCharEnd = _F, _9? deltaCharEnd, _9? lod, _19 resetLod = _F, _9? deltaLod, _20? down, _19 deleteDown = _F, _20? appendDown, _20? removeDown, _9? up, _19 deleteUp = _F, _9? deltaUp}) → _u

Available on _u, provided by the $Chunk extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → _5

Available on _u, provided by the $Chunk extension

toString() String
A string representation of this object.
inherited

Operators

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