mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-26 20:46:21 +00:00
28 lines
No EOL
781 B
Dart
28 lines
No EOL
781 B
Dart
import 'package:cake_wallet/store/settings_store.dart';
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
part 'privacy_settings_view_model.g.dart';
|
|
|
|
class PrivacySettingsViewModel = PrivacySettingsViewModelBase
|
|
with _$PrivacySettingsViewModel;
|
|
|
|
abstract class PrivacySettingsViewModelBase with Store {
|
|
PrivacySettingsViewModelBase(this._settingsStore);
|
|
|
|
final SettingsStore _settingsStore;
|
|
|
|
@computed
|
|
bool get disableExchange => _settingsStore.disableExchange;
|
|
|
|
@computed
|
|
bool get shouldSaveRecipientAddress =>
|
|
_settingsStore.shouldSaveRecipientAddress;
|
|
|
|
@action
|
|
void setShouldSaveRecipientAddress(bool value) =>
|
|
_settingsStore.shouldSaveRecipientAddress = value;
|
|
|
|
@action
|
|
void setEnableExchange(bool value) =>
|
|
_settingsStore.disableExchange = value;
|
|
} |