refreshRelations static method

Implementation

static Future<FollowingDashboardModel> refreshRelations(
    FollowingDashboardModel 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,
  );
}