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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

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.