SearchQuote constructor

const SearchQuote({
  1. required FormattedText text,
  2. required FormattedText quote,
  3. required int quotePosition,
})

Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously

Implementation

const SearchQuote({
  required this.text,
  required this.quote,
  required this.quotePosition,
});