setHighlights method
Implementation
bool setHighlights(
Iterable<TextHighlightRange> highlights, {
int activeIndex = -1,
}) {
return setDecorationLayer(
textSearchDecorationLayerKey,
textSearchDecorations(highlights, activeIndex: activeIndex),
priority: textSearchDecorationLayerPriority,
);
}