refreshRelations static method
Implementation
static Future<TutorialModel> refreshRelations(TutorialModel model) async {
List<TutorialEntryModel>? tutorialEntriesHolder;
if (model.tutorialEntries != null) {
tutorialEntriesHolder = List<TutorialEntryModel>.from(
await Future.wait(model.tutorialEntries!.map((element) async {
return await TutorialEntryCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
tutorialEntries: tutorialEntriesHolder,
);
}