SourceEdit class
A description of a single change to a single file.
- Implemented types
Constructors
- SourceEdit(int offset, int length, String replacement, {String? id})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
An identifier that uniquely identifies this source edit from other edits
in the same response. This field is omitted unless a containing structure
needs to be able to identify the edit for some reason.
final
- length → int
-
The length of the region to be modified.
final
- offset → int
-
The offset of the region to be modified.
final
- replacement → String
-
The code that is to replace the specified region in the original code.
final
- 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
-
toMap(
) → Map -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Map m) → SourceEdit