isEntitlementActive static method

Future<bool> isEntitlementActive(
  1. String referenceId
)

Returns true if a Nami Control Center defined Entitlement has at least one backing purchase and it's not expired.

Implementation

static Future<bool> isEntitlementActive(String referenceId) {
  return channel
      .invokeMethod<bool>("isEntitlementActive", referenceId)
      .then<bool>((bool? value) => value ?? false);
}