123456789101112131415161718 |
- import 'package:cpt_profile/modules/setting/setting_state.dart';
- import 'package:riverpod_annotation/riverpod_annotation.dart';
- part 'setting_view_model.g.dart';
- @riverpod
- class SettingViewModel extends _$SettingViewModel {
- @override
- SettingState build() {
- return SettingState();
- }
- void changeEnableNotification(bool value) {
- state = state.copyWith(enbaleNofitication: value);
- }
- }
|