ChangeContentOverlay class
A directive to modify an existing file content overlay. One or more ranges of text are deleted from the old file content overlay and replaced with new text.
The edits are applied in the order in which they occur in the list. This means that the offset of each edit must be correct under the assumption that all previous edits have been applied.
It is an error to use this overlay on a file that does not yet have a file
content overlay or that has had its overlay removed via
(RemoveContentOverlay)#type_RemoveContentOverlay
.
If any of the edits cannot be applied due to its offset or length being out
of range, an INVALID_OVERLAY_CHANGE
error will be reported.
- Inheritance
-
- Object
- ContentOverlayType
- ChangeContentOverlay
- Implemented types
Constructors
-
ChangeContentOverlay(List<
SourceEdit> edits)
Properties
-
edits
→ List<
SourceEdit> -
The edits to be applied to the file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
finalinherited
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Map m) → ChangeContentOverlay