FixApplier class

Applies the automatic part of a FixPlan.

Reversible twice over. It refuses to run unless every file it touches is committed, so git checkout always undoes it; and it keeps the original bytes itself, so when pub get rejects the result it puts them back before returning. The resolver gets the last word, and a failed resolve leaves the project exactly as it was found.

Constructors

FixApplier({PubGetRunner pubGet = runPubGet, bool allowDirty = false})
const

Properties

allowDirty bool
Skips the clean-git check. For projects outside git, at the user's word.
final
hashCode int
The hash code for this object.
no setterinherited
pubGet PubGetRunner
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(String root, List<AutomaticFix> fixes, {required bool isFlutterProject}) Future<ApplyResult>
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