compareLines abstract method

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

Compares two iterables of lines 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> compareLines(
    Iterable<String> source, Iterable<String> target,
    {String? sourceLabel, String? targetLabel});