format method
Run the dartfmt command with the --overwrite option. Format a file, a
directory or a list of files or directories in place.
Implementation
static void format(fileOrPath, {int lineLength}) {
_run('--overwrite', coerceToPathList(fileOrPath), lineLength: lineLength);
}