runFormatter static method
Implementation
static Future<bool> runFormatter(String directory, {bool printErrors = true}) async {
try {
await run(
'flutter',
["format", "."],
workingDirectory: directory,
printErrors: printErrors,
);
return true;
} catch (e) {
return false;
}
}