FixCommand class
Constructors
- FixCommand({required Args args})
-
const
Properties
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 onand// dart format offlines that appear between part directives, along with any surrounding blank lines.