Files
elcaribe/source_code/lib/const/PaymentStatus.dart
2023-08-07 15:52:04 -04:00

25 lines
882 B
Dart

import 'package:active_ecommerce_seller_app/custom/localization.dart';
import 'package:one_context/one_context.dart';
class PaymentStatus {
String option_key;
String name;
PaymentStatus(this.option_key, this.name);
static List<PaymentStatus> getPaymentStatusList() {
return <PaymentStatus>[
PaymentStatus('', LangText(context: OneContext().context).getLocal()!.all_ucf),
PaymentStatus('paid', LangText(context: OneContext().context).getLocal()!.paid_ucf),
PaymentStatus('unpaid', LangText(context: OneContext().context).getLocal()!.unpaid_ucf),
];
}
static List<PaymentStatus> getPaymentStatusListForUpdater() {
return <PaymentStatus>[
PaymentStatus('paid', LangText(context: OneContext().context).getLocal()!.paid_ucf,),
PaymentStatus('unpaid', LangText(context: OneContext().context).getLocal()!.unpaid_ucf),
];
}
}