edits property

List<SourceEdit> edits

List of SourceEdits that have been applied to _yaml since the creation of this instance, in chronological order. Intended to be compatible with package:analysis_server.

The SourceEdit objects can be serialized to JSON using the toJSON function, deserialized using SourceEdit.fromJson, and applied to a string using the apply function. Multiple SourceEdits can be applied to a string using SourceEdit.applyAll.

For more information, refer to the SourceEdit class.

Implementation

List<SourceEdit> get edits => [..._edits];