mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-26 20:46:21 +00:00
Update exchange_provider_description.dart
This commit is contained in:
parent
7f0affa6d2
commit
dbfb74ee97
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,8 @@ class ExchangeProviderDescription extends EnumerableItem<int> with Serializable<
|
||||||
ExchangeProviderDescription(title: 'LetsExchange', raw: 10, image: 'assets/images/letsexchange_icon.svg');
|
ExchangeProviderDescription(title: 'LetsExchange', raw: 10, image: 'assets/images/letsexchange_icon.svg');
|
||||||
static const stealthEx =
|
static const stealthEx =
|
||||||
ExchangeProviderDescription(title: 'StealthEx', raw: 11, image: 'assets/images/stealthex.png');
|
ExchangeProviderDescription(title: 'StealthEx', raw: 11, image: 'assets/images/stealthex.png');
|
||||||
|
static const mayaChain =
|
||||||
|
ExchangeProviderDescription(title: 'MayaChain', raw: 12, image: 'assets/images/mayachain.png');
|
||||||
|
|
||||||
static ExchangeProviderDescription deserialize({required int raw}) {
|
static ExchangeProviderDescription deserialize({required int raw}) {
|
||||||
switch (raw) {
|
switch (raw) {
|
||||||
|
@ -58,6 +60,8 @@ class ExchangeProviderDescription extends EnumerableItem<int> with Serializable<
|
||||||
return letsExchange;
|
return letsExchange;
|
||||||
case 11:
|
case 11:
|
||||||
return stealthEx;
|
return stealthEx;
|
||||||
|
case 12:
|
||||||
|
return mayaChain;
|
||||||
default:
|
default:
|
||||||
throw Exception('Unexpected token: $raw for ExchangeProviderDescription deserialize');
|
throw Exception('Unexpected token: $raw for ExchangeProviderDescription deserialize');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue