dev
dart 28 lines 887 Bytes
Raw
1 import 'package:cw_core/enumerate.dart';
2
3 class ReceivePageOption implements Enumerate {
4 static const mainnet = ReceivePageOption._('mainnet');
5 static const testnet = ReceivePageOption._('testnet');
6 static const anonPayInvoice = ReceivePageOption._('anonPayInvoice');
7 static const anonPayDonationLink = ReceivePageOption._('anonPayDonationLink');
8
9 const ReceivePageOption._(this.value,
10 {this.iconPath, this.description, this.isCommon = false, this.addAddressWord = false});
11
12 final String value;
13 final String? iconPath;
14 final String? description;
15 final bool isCommon;
16 final bool addAddressWord;
17
18 String toString() {
19 return value;
20 }
21 }
22
23 const ReceivePageOptions = [
24 ReceivePageOption.mainnet,
25 // FIXME anonpay disabed for new ui beta. restore after screens are ready
26 // ReceivePageOption.anonPayInvoice,
27 // ReceivePageOption.anonPayDonationLink
28 ];