style: apply dart format across project
This commit is contained in:
@@ -75,7 +75,7 @@ class SubscriptionModel extends HiveObject {
|
||||
if (!isEventActive || eventStartDate == null || eventEndDate == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
final now = DateTime.now();
|
||||
return now.isAfter(eventStartDate!) && now.isBefore(eventEndDate!);
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class SubscriptionModel extends HiveObject {
|
||||
|
||||
// 원래 가격 (이벤트와 관계없이 항상 정상 가격)
|
||||
double get originalPrice => monthlyCost;
|
||||
|
||||
|
||||
// 결제 주기를 영어 키값으로 정규화
|
||||
static String normalizeBillingCycle(String cycle) {
|
||||
switch (cycle.toLowerCase()) {
|
||||
@@ -121,7 +121,7 @@ class SubscriptionModel extends HiveObject {
|
||||
return 'monthly'; // 기본값은 monthly
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 결제 주기를 영어 키값으로 반환 (내부 사용)
|
||||
String get billingCycleKey => normalizeBillingCycle(billingCycle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user