dartFormat method

Future<int> dartFormat(
  1. String path
)

Run dart format on a file or directory

Implementation

Future<int> dartFormat(String path) async {
  return await runProcess(
    'dart format $path',
    runInShell: true,
    silent: true,
  );
}