checkPolicy function
Check a report Map against a deny list of capability names. Returns the
list of violation strings (empty = pass). Native-friendly wrapper over the
engine-safe checkPolicyViolations.
Implementation
List<String> checkPolicy(Map report, {Set<String> deny = const {}}) {
final denyList = <String>[];
for (final d in deny) {
denyList.add(d);
}
return checkPolicyViolations({'report': report, 'deny': denyList});
}