mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 21:09:23 +00:00
16 lines
193 B
Dart
16 lines
193 B
Dart
|
enum Fiats {
|
||
|
USD
|
||
|
// etc
|
||
|
}
|
||
|
|
||
|
extension FiatExt on Fiats {
|
||
|
String get ticker {
|
||
|
switch (this) {
|
||
|
case Fiats.USD:
|
||
|
return "USD";
|
||
|
default:
|
||
|
return "-";
|
||
|
}
|
||
|
}
|
||
|
}
|