refreshRelations static method

Future<FaderModel> refreshRelations(
  1. FaderModel model
)

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,
  );
}