setRoleReadAccess method

void setRoleReadAccess(
  1. ParseRole role,
  2. bool allowed
)

Set whether users belonging to the role with the given roleName are allowed to read this object.

Implementation

void setRoleReadAccess(ParseRole role, bool allowed) {
  _validateRoleState(role);
  _map['role:${role.name}'] =
      _Permissions(write: getRoleReadAccess(role), read: allowed);
}