getPermissionEntitlement method

Future<Entitlement> getPermissionEntitlement(
  1. String permissionKey
)

Returns the Entitlement for the given permission key.

Evaluated on-device from the state populated by the last successful loadEntitlements call — call loadEntitlements first (returns isEntitled: false, justification: "ENTITLEMENTS_NOT_LOADED" otherwise).

Implementation

Future<Entitlement> getPermissionEntitlement(String permissionKey) =>
    _runAction(
      () => FronteggPlatform.instance.getPermissionEntitlement(permissionKey),
    );