PolicyResource constructor

PolicyResource(
  1. String path, {
  2. Set<PermissionType>? grants,
  3. Set<PermissionType>? revokes,
})

Creates a new PolicyResource with the path and the optional grants and revokes.

Implementation

PolicyResource(this.path,
    {Set<PermissionType>? grants, Set<PermissionType>? revokes}) {
  grant = <PermissionType>{...?grants};
  revoke = <PermissionType>{...?revokes};
}