cake_wallet/lib/view_model/settings/tor_view_model.dart
2023-12-19 20:20:21 -05:00

18 lines
430 B
Dart

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;
}
}