DiffHighlightCache constructor

DiffHighlightCache({
  1. required Highlighter highlighter,
  2. required SyntaxTheme theme,
  3. String? language,
  4. InlineDiffMode inlineDiffMode = InlineDiffMode.mergedWords,
})

A cache that highlights with highlighter in theme, in language or the language of each file's path.

Implementation

DiffHighlightCache({
  required this.highlighter,
  required this.theme,
  this.language,
  this.inlineDiffMode = InlineDiffMode.mergedWords,
});