SequenceEqualStream<S, T> constructor

SequenceEqualStream<S, T>(
  1. Stream<S> stream,
  2. Stream<T> other,
  3. {bool dataEquals(
    1. S s,
    2. T t
    )?,
  4. bool errorEquals(
    1. ErrorAndStackTrace,
    2. ErrorAndStackTrace
    )?}
)

Creates a Stream that emits true or false, depending on the equality between the provided Streams. This single value is emitted when both provided Streams are complete. After this event, the Stream closes.

Implementation

SequenceEqualStream(
  Stream<S> stream,
  Stream<T> other, {
  bool Function(S s, T t)? dataEquals,
  bool Function(ErrorAndStackTrace, ErrorAndStackTrace)? errorEquals,
}) : _controller = _buildController(stream, other, dataEquals, errorEquals);