isFreeIntroTrial property
bool
get
isFreeIntroTrial
是否为免费试用(未使用过免费试用资格)
满足以下条件则认为是免费试用:
introductoryPaymentMode == "freeTrial"isEligibleForIntroOffer == trueintroductoryRoundValue > 0introductoryOfferPrice == 0
Implementation
bool get isFreeIntroTrial {
if (introductoryPaymentMode != "freeTrial") return false;
if (isEligibleForIntroOffer != true) return false;
if ((introductoryRoundValue ?? 0) <= 0) return false;
if (introductoryOfferPrice == null) return false;
return introductoryOfferPrice == 0;
}