DartFmt class

Utility class for invoking dartfmt from the SDK. This wrapper requires the dartfmt from SDK 1.9 and greater.

Constructors

DartFmt()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

dryRun(dynamic fileOrPath, { int lineLength }) → bool
Run the dartfmt command with the --dry-run option. Return true if any files would be changed by running the formatter.
format(dynamic fileOrPath, { int lineLength }) → void
Run the dartfmt command with the --overwrite option. Format a file, a directory or a list of files or directories in place.