ReadableDiffer class

Generates a highly configurable diff output.

Inheritance

Constructors

ReadableDiffer({Predicate1<String>? lineJunk, Predicate1<int>? charJunk, Printer<String>? replaceLine, Printer<String>? deleteLine, Printer<String>? insertLine, Printer<String>? equalLine})
Creates a readable differ with optional custom line/character filters and printers.

Properties

charJunk → Predicate1<int>?
Predicate identifying junk character codes.
final
deleteLine → Printer<String>
Printer for deleted lines.
final
equalLine → Printer<String>
Printer for equal lines.
final
hashCode → int
The hash code for this object.
no setterinherited
insertLine → Printer<String>
Printer for inserted lines.
final
lineJunk → Predicate1<String>?
Predicate identifying junk lines.
final
replaceLine → Printer<String>
Printer for replaced lines.
final
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