Entitlement class
Result of an entitlement check via FronteggFlutter.getFeatureEntitlement / FronteggFlutter.getPermissionEntitlement.
Evaluated on-device from the in-memory entitlements state populated by the last successful FronteggFlutter.loadEntitlements call, so a check is cheap and synchronous on the native side.
Constructors
- Entitlement({required bool isEntitled, String? justification})
-
const
-
Entitlement.fromMap(Map<
Object?, Object?> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEntitled → bool
-
Whether the user is entitled to the requested feature/permission.
final
- justification → String?
-
When isEntitled is
false, the reason code — one of the canonical values mirrored from@frontegg/entitlements-javascript-commons(MISSING_FEATURE,MISSING_PERMISSION,BUNDLE_EXPIRED) plus the mobile-specific preconditions (NOT_AUTHENTICATED,ENTITLEMENTS_DISABLED,ENTITLEMENTS_NOT_LOADED).nullwhen isEntitled istrue.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override