isInvalidSubscription method

bool isInvalidSubscription()

Implementation

bool isInvalidSubscription() {
  if (authController.isCorporate && showBusiness.isFalse) {
    CustomFlashWidget.showFlashMessage(
      type: FlashType.error,
      title: 'Access Denied',
      message:
          'Individual packages cannot be purchased using a corporate account. Please create a new individual account to access this package or contact support',
    );
    return true;
  }

  if (authController.isCorporate && showBusiness.isFalse) {
    CustomFlashWidget.showFlashMessage(
      type: FlashType.error,
      title: 'Access Denied',
      message:
          'Corporate packages cannot be purchased using a individual account. Please create a new corporate account to access this package or contact support',
    );
    return true;
  }

  return false;
}