SourceFileEdit class
SourceFileEdit
{ "file": FilePath "fileStamp": long "edits": List
Clients may not extend, implement or mix-in this class.
Constructors
-
SourceFileEdit(String file, int fileStamp, {List<
SourceEdit> ? edits}) - SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json, {ClientUriConverter? clientUriConverter})
-
factory
Properties
-
edits
↔ List<
SourceEdit> -
A list of the edits used to effect the change.
getter/setter pair
- file ↔ String
-
The file containing the code to be modified.
getter/setter pair
- fileStamp ↔ int
-
The modification stamp of the file at the moment when the change was
created, in milliseconds since the "Unix epoch". Will be -1 if the file
did not exist and should be created. The client may use this field to
make sure that the file was not changed since then, so it is safe to
apply the change.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
SourceEdit edit, {bool insertBeforeExisting = false}) → void -
Adds the given
Edit
to the list. -
addAll(
Iterable< SourceEdit> edits, {bool insertBeforeExisting = false}) → void -
Adds the given
Edit
s. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{ClientUriConverter? clientUriConverter}) → Map< String, Object> - Returns a JSON presentation of the object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override