NormalDiffer class

Generates the normal output format of diff.

In this format, a stands for added, d for deleted and c for changed. Line numbers of the original file appear before a/d/c and those of the new file appear after. The less-than and greater-than signs (at the beginning of lines that are added, deleted or changed) indicate which file the lines appear in. Addition lines are added to the original file to appear in the new file. Deletion lines are deleted from the original file to be missing in the new file.

By default, lines common to both files are not shown. Lines that have moved are shown as added at their new location and as deleted from their old location.

Inheritance

Constructors

NormalDiffer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareLines(Iterable<String> source, Iterable<String> target, {String? sourceLabel, String? targetLabel}) Iterable<String>
Compares two iterables of lines from source to target.
override
compareStrings(String source, String target, {String? sourceLabel, String? targetLabel}) Iterable<String>
Compares two strings from source to target.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited