evaluatePolicies method
Evaluates entity-level and model-level policies for this entity.
If a policyKey is provided, only that specific policy is evaluated.
Implementation
PolicyEvaluationResult evaluatePolicies({String? policyKey}) {
return _policyEvaluator.evaluate(this, policyKey: policyKey);
}