privilegeLevelToMemberRoleString function

String privilegeLevelToMemberRoleString(
  1. PrivilegeLevel? privilegeLevel,
  2. bool? blocked
)

Implementation

String privilegeLevelToMemberRoleString(
    PrivilegeLevel? privilegeLevel, bool? blocked) {
  if (privilegeLevel == null) return 'Unprivileged member';
  return privilegeLevelIntToMemberRoleString(privilegeLevel.index, blocked);
}