FixCommand class
- Implementers
Constructors
- FixCommand({required Args args, ImportStyle style = ImportStyle.granular})
-
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
- style → ImportStyle
-
final
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, BarrelImportCache barrelCache = const BarrelImportCache.empty()}) → 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.