onData method Null safety
Register callbacks
to trigger when stream has new results
where QueryResult.isNotLoading
Will deregister callbacks
after calling them on the first
result that QueryResult.isConcrete,
handling the resolution of lifecycle from
QueryLifecycle.sideEffectsBlocking to QueryLifecycle.completed
as appropriate
Implementation
void onData(Iterable<OnData<TParsed>> callbacks) =>
_onDataCallbacks.addAll(callbacks);