loadSlide function

Future<List<SlideData>> loadSlide()

Implementation

Future<List<SlideData>> loadSlide() async {
  final presentationFile = kShowtimeDirectory.presentationFile;

  final presentationContent = await presentationFile.readAsString();
  final slideContents = slideMarkdownParser(presentationContent);

  await buildSlideData(slideContents);
  await buildCodePreviewBuilder(slideContents);

  return slideContents;
}