format static method

Future<void> format([
  1. List<String>? paths
])

Implementation

static Future<void> format([List<String>? paths]) async {
  if (paths == null || paths.isEmpty) {
    return execute(['${FlutterHelper.getCommandDart()} format .']);
  } else {
    for (var element in paths) {
      await '${FlutterHelper.getCommandDart()} format .'.start(
        workingDirectory: element,
      );
    }
  }
}