PolicyGroup constructor

PolicyGroup(
  1. String name, {
  2. Map<String, PolicySubject>? policySubjects,
  3. Map<String, PolicyResource>? policyResources,
})

Creates a new PolicyGroup with the given name and optional policySubjects and policyResources.

Implementation

PolicyGroup(this.name,
    {Map<String, PolicySubject>? policySubjects,
    Map<String, PolicyResource>? policyResources}) {
  subjects = <String, PolicySubject>{...?policySubjects};
  resources = <String, PolicyResource>{...?policyResources};
}