DiffSegment class final
A piece of a diff line with one style. changed marks the words that differ from the paired line, which views give a stronger background.
Constructors
- DiffSegment(String text, TokenStyle style, {bool changed = false})
-
Creates a segment of
textpainted withstyle.const
Properties
- changed → bool
-
Whether text is part of a word that changed.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TokenStyle
-
The token style to paint text with.
final
- text → String
-
The segment's text.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override