renderContextText function

String renderContextText({
  1. required String content,
  2. required String chunkType,
})

Implementation

String renderContextText({required String content, required String chunkType}) {
  final decoded = decodeStructuredChunkType(chunkType);
  final headerPath = decoded.headerPath;
  if (headerPath == null) {
    return content;
  }

  return 'Header Path: $headerPath\n$content';
}