refreshRelations static method
Implementation
static Future<FaderModel> refreshRelations(FaderModel model) async {
List<ListedItemModel>? itemsHolder;
if (model.items != null) {
itemsHolder = List<ListedItemModel>.from(
await Future.wait(model.items!.map((element) async {
return await ListedItemCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
items: itemsHolder,
);
}