fix static method

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

Implementation

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