format static method

void format(
  1. dynamic fileOrPath, {
  2. int? lineLength,
})

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(const [], coerceToPathList(fileOrPath), lineLength: lineLength);
}