queueId method
Prepares an Id to be loaded in the next batch.
Implementation
void queueId(String id) {
if (!queuedIds.contains(id) && !idsCurrentlyBeingFetched.contains(id)) {
_log.log(logLevel, 'Id $id not yet queued - adding to queue now');
loadedItems[id] = Completer<T?>();
queuedIds.add(id);
timer
..cancel()
..start(const Duration(milliseconds: 1), loadDeferredIds);
}
}