asyncSetPath method

Stream<Snapshot> asyncSetPath(
  1. String path,
  2. Stream childStream
)

Updates the content at path for each snapshot in this stream asynchronously with the values from childStream

Implementation

Stream<Snapshot> asyncSetPath(String path, Stream<dynamic> childStream) {
  // withLatestFrom could also be used, but handles first and second stream
  // differently
  return CombineLatestStream([this, childStream], (l) {
    var t = l[0] as Snapshot;
    var s = l[1];
    return t.setPath(path, s);
  });
}