setQueryState method
use to emit/update a specific query state on a stream pass the key of the query to update state and the new state
Implementation
void setQueryState(String key, QueryState state) {
assert(_queryCache.containsKey(key));
_queryCache[key]!.stream.add(state);
}