updateSubscriptionStatus method

void updateSubscriptionStatus()

Implementation

void updateSubscriptionStatus() {
  hasFreeSubscriptionAndCreditsPurchased.value =
      authenticationController.hasCreditPurchased == true &&
          authenticationController.userProfileModel.value.data?.currentSubscription == null;

  hasFreeSubscriptionAndNoCreditsPurchased.value =
      authenticationController.hasCreditPurchased == false &&
          authenticationController.userProfileModel.value.data?.currentSubscription == null;

  hasSubscriptionAndNonDiscounted.value =
      !hasDiscountedFlight &&
          authenticationController.userProfileModel.value.data?.currentSubscription != null;

  hasSubscriptionAndDiscounted.value =
      hasDiscountedFlight &&
          authenticationController.userProfileModel.value.data?.currentSubscription != null;
}