setQuery method

void setQuery(
  1. String query
)

Called from your UI to set a search query to be applied against the items from the source bloc.

Note: the query will be stored lowercase.

Implementation

void setQuery(String query) => emit(query.toLowerCase());