cake_wallet/lib/view_model/settings/tor_connection.dart

15 lines
381 B
Dart
Raw Normal View History

2024-01-02 17:10:54 +00:00
enum TorConnectionType { enabled, disabled, onionOnly }
class TorConnection {
TorConnection(this.name, this.type);
final String name;
final TorConnectionType type;
static final all = [
TorConnection("Enabled", TorConnectionType.enabled),
TorConnection("Disabled", TorConnectionType.disabled),
TorConnection("Onion Only", TorConnectionType.onionOnly),
];
}