cake_wallet/lib/entities/receive_page_option.dart

24 lines
559 B
Dart

import 'package:cake_wallet/generated/i18n.dart';
enum ReceivePageOption {
mainnet,
anonPayInvoice,
anonPayDonationLink;
@override
String toString() {
String label = '';
switch (this) {
case ReceivePageOption.mainnet:
label = S.current.mainnet;
break;
case ReceivePageOption.anonPayInvoice:
label = S.current.trocador_anonpay_invoice;
break;
case ReceivePageOption.anonPayDonationLink:
label = S.current.trocador_anonpay_donation_link;
break;
}
return label;
}
}