Update exchange_provider_description.dart

This commit is contained in:
GiMa-Maya 2024-10-21 20:59:32 +02:00 committed by GitHub
parent 7f0affa6d2
commit dbfb74ee97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,8 @@ class ExchangeProviderDescription extends EnumerableItem<int> with Serializable<
ExchangeProviderDescription(title: 'LetsExchange', raw: 10, image: 'assets/images/letsexchange_icon.svg');
static const stealthEx =
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}) {
switch (raw) {
@ -58,6 +60,8 @@ class ExchangeProviderDescription extends EnumerableItem<int> with Serializable<
return letsExchange;
case 11:
return stealthEx;
case 12:
return mayaChain;
default:
throw Exception('Unexpected token: $raw for ExchangeProviderDescription deserialize');
}