setHighlights method

bool setHighlights(
  1. Iterable<TextHighlightRange> highlights, {
  2. int activeIndex = -1,
})

Implementation

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