highlighted method
Returns list of highlighted segments for a given input, using provided highlighter.
Implementation
List<HighlightedTextSegment> highlighted(String input) {
if (_highlightCache.containsKey(input)) {
return _highlightCache[input] ?? [];
}
return _highlightCache[input] =
highlighter?.highlight(input, [_highlight]) ?? [];
}