dispatch method

void dispatch(
  1. SearchHouseholdsEvent event
)

Implementation

void dispatch(SearchHouseholdsEvent event) {
  if (event is IndividualGlobalSearchEvent) {
    individualGlobalSearchBloc.add(event);
  } else if (event is HouseHoldGlobalSearchEvent) {
    houseHoldGlobalSearchBloc.add(event);
  } else if (event is SearchHouseholdsByTagEvent) {
    tagSearchBloc.add(event);
  } else {
    searchHouseholdsBloc.add(event);
  }
}