getSharedNoteContent function

Future<Map> getSharedNoteContent(
  1. BuildContext context,
  2. Widget childPage,
  3. Map sharedNoteData
)

Implementation

Future<Map> getSharedNoteContent(
    BuildContext context, Widget childPage, Map sharedNoteData) async {
  final sharedNoteUrl = sharedNoteData[noteUrl];

  // Get note content
  final noteContent = await readExternalPod(sharedNoteUrl, context, childPage);

  final noteContentMap = noteInfoMap(noteContent);

  return noteContentMap;
}