setBlockedByMe method

void setBlockedByMe(
  1. {required String targetId,
  2. required bool blocked}
)

Implementation

void setBlockedByMe({required String targetId, required bool blocked}) {
  for (final member in members) {
    if (member.userId == targetId) {
      member.isBlockedByMe = blocked;
      break;
    }
  }
}