setSearchQuery method

void setSearchQuery(
  1. String query
)

Updates the search query and filters the mothers list

Implementation

void setSearchQuery(String query) {
  emit(state.copyWith(searchQuery: query));
  _applySearchFilter();
}