compareStrings method

Iterable<String> compareStrings(
  1. String source,
  2. String target, {
  3. String? sourceLabel,
  4. String? targetLabel,
})

Compares two strings from source to target.

The optional arguments sourceLabel and targetLabel are used by some differs to print additional information about where the data is coming from, i.e. the filename and the last modification date.

Implementation

Iterable<String> compareStrings(String source, String target,
        {String? sourceLabel, String? targetLabel}) =>
    compareLines(_lineSplitter.convert(source), _lineSplitter.convert(target),
        sourceLabel: sourceLabel, targetLabel: targetLabel);