writeStructures method
Future
writeStructures({
- required List<
BuildStructureModel> structures, - 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');
}),
);
}