grants property

Map<String, Set<String>> get grants

Who holds what, for an entitlements view.

hasEntitlement answers one pair at a time, so a customer who lost access and one who never had it are indistinguishable without this.

Implementation

Map<String, Set<String>> get grants => Map<String, Set<String>>.unmodifiable(
      <String, Set<String>>{
        for (final entry in _grants.entries)
          entry.key: Set<String>.unmodifiable(entry.value),
      },
    );