hasPremiumAccess static method

Future<bool> hasPremiumAccess()

Returns true if user has active subscription or non renewing purchase (lifetime).

Determines if the user has active premium access, which includes any active subscription or non-renewing purchase (lifetime).

Note: This method is not suitable for consumable in-app purchases, like coin packs. Use this method to check if the user has active premium access. If you have consumable purchases, consider using alternative methods, as this won't distinguish consumables from non-consumables.

Implementation

static Future<bool> hasPremiumAccess() async {
  return (await _channel.invokeMethod('hasPremiumAccess')) ?? false;
}