textFor method

String textFor(
  1. Chunk chunk, {
  2. required bool includeContext,
})

Retrieval input; the original source passage is never overwritten.

Implementation

String textFor(Chunk chunk, {required bool includeContext}) =>
    includeContext ? _contextTexts[chunk.id]! : chunk.content;