refreshRelations static method
Implementation
static Future<FollowRequestsDashboardModel> refreshRelations(
FollowRequestsDashboardModel model) async {
List<MemberActionModel>? memberActionsHolder;
if (model.memberActions != null) {
memberActionsHolder = List<MemberActionModel>.from(
await Future.wait(model.memberActions!.map((element) async {
return await MemberActionCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
memberActions: memberActionsHolder,
);
}