writeStructures method

Future writeStructures({
  1. required List<BuildStructureModel> structures,
  2. required String prefixPath,
})

Implementation

Future writeStructures({
  required List<BuildStructureModel> structures,
  required String prefixPath,
}) async {
  return Future.wait(
    structures.map((structure) {
      final path = structure.toPath();
      return fileWriterFeature.createFile('$prefixPath/$path');
    }),
  );
}