FixCommand class

Constructors

FixCommand({required Args args})
const

Properties

args Args
final
config Config
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getParts(ParsedUnitResult parsed) List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<String> files) Future<int>
toString() String
A string representation of this object.
inherited
updateImportStatements(ResolvedReferences import, {Config? config}) Future<void>

Operators

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

Static Methods

findImportBlockIndices(List<String> lines) → ({int? importEnd, int? importStart})
Finds the indices of the import block (library, import, export directives) and the index of the first line after it. Handles multi-line show/hide clauses correctly.
removeDartFormatCommentsBetweenParts(List<String> lines) String
Removes // dart format on and // dart format off lines that appear between part directives, along with any surrounding blank lines.