sequenceEqual<A, B> method
- Stream<
A> stream, - Stream<
B> other, - {bool equals(
- A a,
- B b
Determine whether two Streams emit the same sequence of items.
You can provide an optional equals
handler to determine equality.
Example
Rx.sequenceEqual([
Stream.fromIterable([1, 2, 3, 4, 5]),
Stream.fromIterable([1, 2, 3, 4, 5])
])
.listen(print); // prints true
Implementation
static Stream<bool> sequenceEqual<A, B>(Stream<A> stream, Stream<B> other,
{bool Function(A a, B b) equals}) =>
SequenceEqualStream<A, B>(stream, other, equals: equals);