toRawPage function

RawPage toRawPage(
  1. SrcPage srcPage,
  2. String bookFolderPath
)

Src --> Raw

Implementation

RawPage toRawPage(SrcPage srcPage, String bookFolderPath) {
  final codeName = toCodeName(srcPage.name);
  final filePath = '$bookFolderPath/$codeName$dartExt';

  final dart = toDartPage(srcPage);
  final rawPage = RawPage(
    fileContent: dart,
    filePath: filePath,
  );
  return rawPage;
}