completeQuery method
Merges page and applies on top of it the changes that arrived during the query; the window
is loaded afterwards (isLoaded). The continuation comes from the page, unless everything
was removed during the query.
Returns whether all entries were removed during the query: any store snapshot taken in that time (for example, tags) may predate the removal and is then stale.
Implementation
bool completeQuery(LogPage page) {
final changes = _changesDuringQuery ?? const <LogStoreChange>[];
_changesDuringQuery = null;
page.entries.forEach(_insert);
_next = page.next;
_isLoaded = true;
changes.forEach(_apply);
return changes.any((change) => change is AllLogEntriesRemoved);
}