SourceChange class

A description of a set of edits that implement a single conceptual change.

Constructors

SourceChange(String message, List<SourceFileEdit> edits, List<LinkedEditGroup> linkedEditGroups, {Position? selection, int? selectionLength, String? id})

Properties

edits List<SourceFileEdit>
A list of the edits used to effect the change, grouped by file.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The optional identifier of the change kind. The identifier remains stable even if the message changes, or is parameterized.
final
linkedEditGroups List<LinkedEditGroup>
A list of the linked editing groups used to customize the changes that were made.
final
message String
A human-readable description of the change to be applied.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection Position?
The position that should be selected after the edits have been applied.
final
selectionLength int?
The length of the selection (starting at Position) that should be selected after the edits have been applied.
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.
inherited

Static Methods

parse(Map m) SourceChange