AutoFormatResult class

The result of a AutoFormat.apply that has detected a pattern

Constructors

AutoFormatResult({TextSelection? selection, required Delta change, TextSelection? undoSelection, required Delta undo, required int undoPositionCandidate})

Properties

change → Delta
The change that was applied
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection TextSelection?
Optional TextSelection after applying the auto format.
final
undo → Delta
The changes to undo the formatting
final
undoPositionCandidate int
The position at which an auto format can be canceled
final
undoSelection TextSelection?
Optional TextSelection after undoing the formatting
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited