highlightOption method

  1. @override
List<HighlightedTextSegment> highlightOption(
  1. Object? item
)
override

Implementation

@override
List<HighlightedTextSegment> highlightOption(Object? item) {
  _highlightAssistant ??= HighlightAssistant(
      optionHighlighter: optionHighlighter,
      matchFromStartOfWord: _highlightMatchFromStartOfWord);

  return _highlightAssistant?.highlightOption(
          highlightQuery, item, highlightRenderer) ??
      [];
}