Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
chore: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
omartinma committed Nov 23, 2023
1 parent e7849e4 commit aced839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions lib/home/bloc/home_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ class HomeBloc extends Bloc<HomeEvent, HomeState> {

final QuestionsRepository _questionsRepository;

Future<void> _onFromWelcomeToQuestion(
void _onFromWelcomeToQuestion(
FromWelcomeToQuestion event,
Emitter<HomeState> emit,
) async {
) {
emit(state.copyWith(status: Status.welcomeToAskQuestion));
}

Future<void> _onQuestion(
void _onQuestion(
AskQuestion event,
Emitter<HomeState> emit,
) async {
) {
emit(state.copyWith(status: Status.askQuestion));
}

FutureOr<void> _queryUpdated(QueryUpdated event, Emitter<HomeState> emit) {
void _queryUpdated(QueryUpdated event, Emitter<HomeState> emit) {
emit(state.copyWith(query: event.query));
}

Future<FutureOr<void>> _questionAsked(
Future<void> _questionAsked(
QuestionAsked event,
Emitter<HomeState> emit,
) async {
Expand Down
3 changes: 0 additions & 3 deletions lib/home/bloc/home_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@ class QueryUpdated extends HomeEvent {

class QuestionAsked extends HomeEvent {
const QuestionAsked();

@override
List<Object> get props => [];
}

0 comments on commit aced839

Please sign in to comment.