30 lines
665 B
Dart
30 lines
665 B
Dart
import 'package:bloc/bloc.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'settings_state.dart';
|
|
part 'settings_cubit.freezed.dart';
|
|
|
|
class SettingsCubit extends Cubit<SettingsState> {
|
|
SettingsCubit() : super(SettingsState.initial());
|
|
|
|
Future<void> toInitialState() async {
|
|
emit(SettingsState.initial());
|
|
}
|
|
|
|
Future<void> toProfileState() async {
|
|
emit(SettingsState.profile());
|
|
}
|
|
|
|
Future<void> toNotificationsState() async {
|
|
emit(SettingsState.notifications());
|
|
}
|
|
|
|
Future<void> toFaqState() async {
|
|
emit(SettingsState.faq());
|
|
}
|
|
|
|
Future<void> toAboutState() async {
|
|
emit(SettingsState.about());
|
|
}
|
|
}
|