WordChanges class final
The changed words within edited lines, for highlighting what changed inside a line rather than only which lines changed.
Within each block of removed lines followed by added lines, the n-th removed line is paired with the n-th added line, like GitHub does. Pairs that share too little are treated as rewritten lines and get no word ranges.
Constructors
- WordChanges.of(FileDiff diff, {InlineDiffMode mode = InlineDiffMode.mergedWords, int maxLineLength = 10000})
-
Computes word changes for every hunk in
diff.factory
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
-
rangesFor(
DiffLine line) → List< CharRange> -
The changed ranges in
line, or an empty list. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited