From aced839c429c00a95b9796470302cd359a2ee018 Mon Sep 17 00:00:00 2001 From: Oscar Date: Thu, 23 Nov 2023 17:58:47 +0100 Subject: [PATCH] chore: feedback --- lib/home/bloc/home_bloc.dart | 12 ++++++------ lib/home/bloc/home_event.dart | 3 --- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/home/bloc/home_bloc.dart b/lib/home/bloc/home_bloc.dart index f74c372..49cdacb 100644 --- a/lib/home/bloc/home_bloc.dart +++ b/lib/home/bloc/home_bloc.dart @@ -18,25 +18,25 @@ class HomeBloc extends Bloc { final QuestionsRepository _questionsRepository; - Future _onFromWelcomeToQuestion( + void _onFromWelcomeToQuestion( FromWelcomeToQuestion event, Emitter emit, - ) async { + ) { emit(state.copyWith(status: Status.welcomeToAskQuestion)); } - Future _onQuestion( + void _onQuestion( AskQuestion event, Emitter emit, - ) async { + ) { emit(state.copyWith(status: Status.askQuestion)); } - FutureOr _queryUpdated(QueryUpdated event, Emitter emit) { + void _queryUpdated(QueryUpdated event, Emitter emit) { emit(state.copyWith(query: event.query)); } - Future> _questionAsked( + Future _questionAsked( QuestionAsked event, Emitter emit, ) async { diff --git a/lib/home/bloc/home_event.dart b/lib/home/bloc/home_event.dart index 97b54a1..6dafda0 100644 --- a/lib/home/bloc/home_event.dart +++ b/lib/home/bloc/home_event.dart @@ -25,7 +25,4 @@ class QueryUpdated extends HomeEvent { class QuestionAsked extends HomeEvent { const QuestionAsked(); - - @override - List get props => []; }