getSubscriptionPrice method
Implementation
@override
double getSubscriptionPrice(SubscriptionLevel level) {
AppConfig.logger.d("Getting Subscription Price for Level: ${level.name}");
_subscriptionPlans.forEach((key, plan) {
if(plan.level == level) {
_selectedPlan = plan;
_selectedPlanName.value = selectedPlan.name;
_selectedPlanImgUrl.value = selectedPlan.imgUrl;
if(kDebugMode) {
_selectedPrice.value = Price(amount: 59);
} else {
_selectedPrice.value = selectedPlan.price!;
}
}
});
return _selectedPrice.value.amount;
}