build method

Future<void> build()

Implementation

Future<void> build() async {
  final allMessageFiles = await getParsedMessageFiles();
  final inputMessageFile = allMessageFiles
      .singleWhere((messageFile) => messageFile.assetId == inputId);
  final parentFile = getParentFile(allMessageFiles, inputMessageFile);

  final reducedMessageFile = reduce(parentFile, inputMessageFile);

  await writeDataFile(reducedMessageFile);
  if (parentFile.assetId == inputId) {
    await writeDartLibrary(allMessageFiles, reducedMessageFile);
  }
}