Patch class

A representation of a change to a source file.

The change targets a specific span within the file and specifies the text that would be inserted at that span if applied.

A patch can represent an insertion, a deletion, or a replacement:

Also note that endOffset may be null, in which case it defaults to the end of the file.

Constructors

Patch(String updatedText, int startOffset, [int? endOffset])

Properties

endOffset int?
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startOffset int
final
updatedText String
The value that would be written in place of the existing text across the sourceSpan.
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