setHighlightPreTag method

AlgoliaQuery setHighlightPreTag(
  1. String value
)

HighlightPreTag

The HTML string to insert before the highlighted parts in all highlight and snippet results.

Usage notes:

  • highlightPreTag needs to be used along with highlightPostTag.

Source: Learn more

Implementation

AlgoliaQuery setHighlightPreTag(String value) {
  assert(value.isNotEmpty, 'value can not be empty');
  assert(!_parameters.containsKey('highlightPreTag'));
  return _copyWithParameters(<String, dynamic>{'highlightPreTag': value});
}