writeGenBook function

Future<void> writeGenBook(
  1. RawBook rawBook
)

write gen files

Implementation

Future<void> writeGenBook(RawBook rawBook) async {
  // Folder
  writeFolder(rawBook.folderPath);

  // File
  writeStringFile(
    rawBook.filePath,
    rawBook.fileContent,
  );

  // Pages
  for (final page in rawBook.pages) {
    await writeGenPage(page);
  }
}