Myers-style minimal edit script between two strings (line-based).
Splits oldText and newText by newlines, computes a minimal edit script,
and returns a list of DiffOp (equal, insert, delete). Merges adjacent
ops of the same kind so each DiffOp can span multiple lines.
Example:
final script = MyersDiffUtils.diffLines('a\nb\nc', 'a\nx\nc');
// [Equal('a\n'), Delete('b\n'), Insert('x\n'), Equal('c')] (conceptually)
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
-
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