setOptions method
Replaces the options — a changed key switches the observed query without recreating anything.
task.setOptions(taskQuery(nextId));
Deliberately does not notify: the observer notifies by itself when the
result changes, and notifying here would rebuild the widget that just
called this from its own build.
When the observer refuses the options — a throwing
InitialData.compute for a query that exists without data, which
leaves it on the old key — nothing is kept here either, so value
keeps reporting the key the observer is really on.
Implementation
void setOptions(QueryObserverOptionsBase<TQueryData, TData> options) {
_observer.setOptions(options);
_options = options;
}