onData method

void onData(
  1. Iterable<OnData> callbacks
)

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> callbacks) =>
    _onDataCallbacks.addAll(callbacks ?? []);