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