ReadableDiffer constructor

ReadableDiffer({
  1. Predicate1<String>? lineJunk,
  2. Predicate1<int>? charJunk,
  3. Printer<String>? replaceLine,
  4. Printer<String>? deleteLine,
  5. Printer<String>? insertLine,
  6. Printer<String>? equalLine,
})

Implementation

ReadableDiffer({
  this.lineJunk,
  this.charJunk,
  Printer<String>? replaceLine,
  Printer<String>? deleteLine,
  Printer<String>? insertLine,
  Printer<String>? equalLine,
})  : replaceLine = replaceLine ?? _stringPrinter.before('? '),
      deleteLine = deleteLine ?? _stringPrinter.before('- '),
      insertLine = insertLine ?? _stringPrinter.before('+ '),
      equalLine = equalLine ?? _stringPrinter.before('  ');