getFeatureEntitlement method

Future<Entitlement> getFeatureEntitlement(
  1. String featureKey
)

Returns the Entitlement for the given feature 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> getFeatureEntitlement(String featureKey) => _runAction(
      () => FronteggPlatform.instance.getFeatureEntitlement(featureKey),
    );