cake_wallet/lib/view_model/settings/tor_view_model.dart

19 lines
430 B
Dart
Raw Normal View History

2023-12-20 01:20:21 +00:00
import 'package:cake_wallet/store/settings_store.dart';
import 'package:mobx/mobx.dart';
part 'tor_view_model.g.dart';
class TorViewModel = TorViewModelBase with _$TorViewModel;
abstract class TorViewModelBase with Store {
TorViewModelBase(this._settingsStore);
final SettingsStore _settingsStore;
@action
Future<void> updateStartOnLaunch(bool value) async {
_settingsStore.shouldStartTorOnLaunch = value;
}
}