getMemberPublicInfo method

Future<MemberPublicInfoModel> getMemberPublicInfo(
  1. String documentId
)

Implementation

Future<MemberPublicInfoModel> getMemberPublicInfo(String documentId) async {
  var member = await memberPublicInfoRepository()!.get(documentId);
  if (member == null) {
    throw Exception(
        "Can't find member with id $documentId in public members repository");
  }
  return member;
}