getSubscriptionType function

SubscriptionType? getSubscriptionType()

Get the current subscription type.

Implementation

SubscriptionType? getSubscriptionType() {
  if (!isAnthropicAuthEnabled()) return null;
  final oauthTokens = getNeomageAIOAuthTokens();
  if (oauthTokens == null) return null;
  return _parseSubscriptionType(oauthTokens.subscriptionType);
}