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 { SettingsCubit() : super(SettingsState.initial()); Future toInitialState() async { emit(SettingsState.initial()); } Future toProfileState() async { emit(SettingsState.profile()); } Future toNotificationsState() async { emit(SettingsState.notifications()); } Future toFaqState() async { emit(SettingsState.faq()); } Future toAboutState() async { emit(SettingsState.about()); } }