parseDelta method

  1. @Deprecated('RichTextParser.parseDelta is not longer supported, and ' 'it will be removed in future releases. ' 'Use DocumentParser.parseDelta instead')
Document? parseDelta(
  1. Delta delta, {
  2. bool returnNoSealedCopies = false,
  3. bool ignoreAllNewLines = false,
})

Parses a Quill Delta into a structured document.

  • returnNoSealedCopies indicates if will need to return a deep copy of the elements to avoid return a Paragraphs that cannot add more elements
  • ignoreAllNewLines indicates that all the new lines with no block-level target to apply will be ignored

Implementation

@Deprecated('RichTextParser.parseDelta is not longer supported, and '
    'it will be removed in future releases. '
    'Use DocumentParser.parseDelta instead')
Document? parseDelta(
  fq.Delta delta, {
  bool returnNoSealedCopies = false,
  bool ignoreAllNewLines = false,
}) {
  return DocumentParser(mergerBuilder: mergerBuilder).parseDelta(
    delta: delta,
    returnNoSealedCopies: returnNoSealedCopies,
    ignoreAllNewLines: ignoreAllNewLines,
  );
}